try: # Load C helper function if available from _collections import _count_elements except ImportError: pass