def count(iterable):
    n = 0
    for item in iterable:
        n += 1
    return n
Consumes all items in an iterable and returns a count.
dataset/ETHPy150Open mediawiki-utilities/python-mediawiki-utilities/mw/util/iteration/count.py/count