Zoom in on the right side and briefly press the button. The counter counts the pulses generated by the circuit (peak > 5V) and automatically resets itself to zero a little later.
Thanks to Kanekixken1 for his circuit L-meter.
Update : replace logic gates by transistors