implementation of a 4 bit counter. just click on the stage to switch the rightmost bit. on overflow a whistle is played.