Counter class is present in collections since Python 2.7, not earlier.