Tried to take all variables out of the loop. Resulted in code that compiles ... but if I run it in the serial console nothing happens any more. The WHILE condition will never be true, so I will remove that.
All that you needed to remove was the int keyword that defined a new variable. Without the int keyword, the name refers to the existing, global, instance.