Multiple Functions, Repeats and Sequence!

Hello! To all!
I'm a beginner in arduino. I do not understand much about this little boy (Arduino), but I know that he fulfills what he promises. (I.e.

My question.
I want to do a trigger sequence, something like.

Start> function1-function1-function1 (repeats a number x of times)> function2-function2 (repeats n.x times)> function3> function4-function4-function4 (repeats n.x times)> end> back to the beginning.

All are executed in the following example: 1,2,3,4,5 ... back
The difference is that some functions will repeat or not.

How many functions can I have in this sequence?
How can I make the arduino understand that after x function he should move on to next?

If someone can help me, I'm very grateful! Thank you!

And a Happy New Year to everyone!

in the main loop:

for(int i = 0; i< "put in your x times here"; i++)
funtion1();

for(int i = 0; i < "your number of times for function 2, which could have been returned by function 1"; i++)
function2();

repeat as you want

any number of functions, repeat each function any number of times.

Thank you! SteveAldrich!

I'll make some attempts later!

Once again, thank you and A Great New Year's Eve .