fork download
  1. from collections import Counter
  2. print(Counter(('foo', 'bar', 'foo')))
Success #stdin #stdout 0.02s 27704KB
stdin
Standard input is empty
stdout
Counter({'foo': 2, 'bar': 1})