counter.py little fixes