number guessing program

short program to guess a randomly generated number between 0-999.
detects incorrect inputs and keeps a counter of guesses