What we have works, but it would probably be faster to use the `Series.value_counts()` method as described [here](http://pandas.pydata.org/pandas-docs/version/0.13.1/generated/pandas.Series.value_counts.html).