fixed count issue in Exercise 5