Counter is a dict sub class that allows you to easily count objects. It has utility methods for working with the frequencies of the objects that you are counting.
import collections
counts = collections.Counter([1,2,3])
the above code creates an object, counts, which has the frequencies of all ...