0-99 Counter with reset

I'm suffering a lot to program.
The sensor didn't work inside the coffee machine and I switched to a button.
But I dont understand the functions of programming the button to start and stop the counter.

I'll give up.
I thought there would be more support here. :slightly_frowning_face: