That link shows that yes, "_count_elements" is implemented in Python, but right after it pulls in the C version if available (which it presumably is in CPython):
try: # Load C helper function if available
from _collections import _count_elements
except ImportError:
pass