implementation of a 8 bit counter. just click on the stage to switch the rightmost bit. on overflow a whistle is played. The space key resets the counter to 0. You can set the counter by changing the counter variable and press s.