Step 3 of the exercise, added counter to track number of guesses