In [1]:
import collections

In [2]:
print(collections)


<module 'collections' from '/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/collections/__init__.py'>

In [3]:
print(collections.Counter)


<class 'collections.Counter'>

In [4]:
# import collections.Counter
# ModuleNotFoundError: No module named 'collections.Counter'

In [5]:
from collections import Counter

In [6]:
print(Counter)


<class 'collections.Counter'>