Simple counter, goes up to 999 then overflows to 0. Press space to count upwards.
Simple code for anyone to use in a game as a slightly better-looking counter than variables.