counter objects counter is subclass of dictionary where each dictionary key is hashable object and the associated value is an integer count of that object there are three ways to initialize counter we can pass it any sequence objecta dictionary of key:value pairsor tuple of the format (object value)for examplewe can also create an empty counter object and populate it by passing its update method an iterable or dictionaryfor example