I was wondering how can i limit the number of times my while loop will loop?