You can use ``defaultdict(int)`` for this since collections.Counter isn't in 2.6.