How Do I set up A Loop To Do A Certain task X Amount of Times

I am hoping someone will be able to tell me how to set a loop that will execute something like this:

digitalWrite(10, HIGH);
digitalWrite(4, HIGH);
digitalWrite(6, HIGH);
delay(4);
digitalWrite(10, LOW);
digitalWrite(11, HIGH);

A set amount of times before moving on to something like this:

digitalWrite(13, HIGH);
digitalWrite(3, HIGH);
digitalWrite(8, HIGH);
delay(4);
digitalWrite(13, LOW);
digitalWrite(3, LOW);
digitalWrite(8, LOW);

Then doing that for a set amount of times before it restarts the whole loop.

Thank you very much to anyone that can help.

void setup( void )
{
  you will have to use pinMode here to configure the pins
}

void loop( void )
{
  for ( int i = 137; i != 0; ++i ) // <<<<<<<<<<<<
  {
    digitalWrite(10, HIGH);                 
    digitalWrite(4, HIGH);
    digitalWrite(6, HIGH);
    delay(4);
    digitalWrite(10, LOW);
    digitalWrite(11, HIGH);
  }

  for ( int i = 92; i != 0; ++i ) // <<<<<<<<<<<<
  {
    digitalWrite(13, HIGH);
    digitalWrite(3, HIGH);
    digitalWrite(8, HIGH);
    delay(4);
    digitalWrite(13, LOW);
    digitalWrite(3, LOW);
    digitalWrite(8, LOW);
  }
}

…look for the “<<<<<<<<<<<<”.

Thank you so much, I did have to tweak it a little, but you finally got me on the right track.