This is a counter using JK Flip Flops going to a 7-segment display. In this example circuit, it counts to 8 (2^3) and starts over. You can add another bit and more logic to have it count through 9 and reset at 10, or add a 2nd display and more flip flops to count to 99. Have fun!
SiLRing says: