use collections.Counter instead of dict

* that's what it's for