OK, I'm finally understanding. Sorry. I forgot the increment option was part of the download.
Store the number in it's own div or span. Then read the innerHTML of the div or span with a parseInt() to convert the value to a number and store it as a variable. Increment it by one with ++ and reset the innerHTML to the incremented value.