slight updates to count.py