def _ordered_count(iterable):
c = {} <EOL>for elem in iterable:<EOL><INDENT>c[elem] = c.get(elem, <NUM_LIT:0>) + <NUM_LIT:1><EOL><DEDENT>return c<EOL>
Return dict of element counts, in the order they were first seen