test the class Counter in collections.py