updated countem.py for extra case and start