Help with loop and restarting movie

How do I create a loop that runs a child movie 3 times.and then restarts the whole movie again…

Can someone help.