def _ordered_count(iterable):
    c = OrderedDict()
    for elem in iterable:
        c[elem] = c.get(elem, 0) + 1
    return c
Return dict of element counts, in the order they were first seen
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/unittest/util.py/_ordered_count