last exercise - countChange - implemented