Only for review sake

for an alternative implemantation without doing the heavy work, look at [collections.Counter](https://docs.python.org/2.7/library/collections.html#collections.Counter)