double loop

Yes, it's called a "for loop"

for (i=0; i < 10 ; i++){
Serial.println(i);
delay(100); // a delay here so it doesn't zoom by so fast in the monitor
}
This loop would start i at 0, then ++ add one until it violates the middle condition, so it will count up to nine.
You can put another for loop inside of that to do something else. Kind of like the movie Inception.