Requirements:
- The program should generate a random number between a specified range (e.g., 1 to 10).
- The player should be prompted to guess the number.
- Provide feedback to the player if their guess is too high, too low, or correct.
- Allow the player to keep guessing until they correctly identify the number.
- Count and display the number of attempts it took for the player to guess correctly.