Rotary dial pulse counter

hallo,

I have a old phone with rotary dial and a circuit board from a new one.
i tested manually applying a pulse to the correct numbers on the new board and it works

I'm trying to make a counter that only counts the number of pulses when the enable switch has been triggered and resets when the enable is low again.

i tried using if statements but it seems to be the wrong approach...
the counter counts even if the enable isn't high

after that i would use 7 output to make the necessary rows and columns

i tried using if statements but it seems to be the wrong approach...

Without seeing your code, you'd have to be the judge of that. Seems right to me, though. If the enable switch is pressed, if there is a pulse, count it. I find it difficult to translate that into code without using if statements.