Please let me clarify my question:
I have enclosed proteus .DSN files so that you can run them if you have the software available. (You can see their schema in my previous posts)
What I want is the 7-segment to show a loop like this:
0,1,2,3,4,5,6,7,
0,1,2,3,4,5,
0,1,2,3,
0,1,2,3,4,5,6,7,
0,1,2,3,4,5,
0,1,2,3
...
and then the loop goes on again.
As you can see in the circuit "countupt03" the loop is going on right counting
0,1,2,3,4,5,6,7,
0,1,2,3,
0,1,2,3,4,5,6,7,
0,1,2,3
....
But I could not do the same for the circuit to count up to "5".
Also, I do not know how to merge these two circuits to get the desired result.