Rather than hard code the number, I'd check to see if the count is less than `num`, that way it's dynamic and a user can easily change the secret_number and not have to change anything else.