Update counter.py