simple non-debounced counter circuit