marcus-g
5/19/2017 - 9:33 PM

To add up counts of a collection use From http://stackoverflow.com/questions/18593519/sum-of-all-counts-in-a-collections-counter

In [4]: sum(Counter([1,2,3,4,5,1,2,1,6]).values())
Out[4]: 9