You can count down to zero with while(i--)