Assignment 1, Exercise 3 Change counting