Counting (part E) is working.