Dict subclass for counting hashable objects.