displays number of attempts it took to guess the number correctly