JeromeAriola:
But for the sake of improving my programming skills, how can I make my code work? I thought that adding the delay allows the variable to increment 10 per 10ms...
Arduino programs (and almost all programs on all computers) start at the top and work their way to the bottom, line by line. In the Arduino when the program gets to the bottom of the loop() function it goes back to the top of loop() and repeats. Now, take a pencil and paper and pretend that your brain is the computer and your paper is the computer memory. Do the calculation on each line and write down the answer. And work your way through setup() and a few iterations of loop().
Also, very important, keep in mind that a computer is monumentally stupid and it only does exactly what the instruction on a line tells it to do.
...R