Cleaning up logging in counters.py.