Counter -- a pythonic way to counting

Counter is a pythonic way to handle counting repeating elements in a list.

1
2
from collections import Counter
Counter([1,2,3,3,4,3,2]) # actually this is a dictionary