Completed working solution to problem

Overall the problem was not overly difficult
Rather than initializing user_guess and count with dummy variables, you could structured the loop as 'begin... end while' - that way, you wouldn't have needed to test the condition until after you've been through the loop at least once.