Use Counter() instead of dict