2. Python Beyond BasicsVI. Standard Library Power Tools45. Collections: CounterOn this page45. Collections: Counter Counter is a dictionary subclass for counting hashable objects. Example from collections import Counterfruits = ["apple", "banana", "apple", "cherry"]count = Counter(fruits)print(count)print(count.most_common(1)) Wrap-Up Use Counter for frequency analysis of items.