made a counter in singlepicegoalstate.py