This is a simple up and down circuit that can be implemented in various digital circuit applications. I know this is useful to students in their projects and thesis design.
I use a 74ls190 (SYNCHRONOUS UP/DOWN COUNTERS WITH DOWN/UP MODE CONTROL) for this circuit. You can check it’s datasheet to know its capabilities.
Here’s the video of the circuit in a breadboard:
with a clock:
There are lots of ICs you can use as a counter. And also, you can improve this circuit depending on your needs.
Never stop learning. . .