Count down in a while loop