Counter

Counter subclasses dict.

from collections import Counter
c = Counter('abracadabra')
print(c.most_common(2))