I started to learn arduino code not too long ago and I started this project where with a press of a button I can change the numbers on a 7-segment display, at the moment I got to the point of turning on a number with a button but I don't know how to latch the number as well as having a latch counter so the arduino could count the amount of times the button has been pushed in order output the corresponding number.