Testing for User Input as a Loop Counter