Updated counting.py example