HELP Can u control the number of times u can loop

Can you control the amount of times a specific set of code loops then moves onto the next set that you also can control the amount of times that set of code loops.

Yes.
One way is to put the sets of code into while loops. The sketch stays in the while  as long as the "test" it makes is true.
Fore example:
[code]
counter = 0;
while (counter <10){

// do some stuff

counter = counter +1;
}

Eventually counter will not be <10, and the code will move on.

You can also do it as a for loop:

for (x=0; x<10; x=x+1){

do some stuff

}

Has the same effect.[/code]

Ok i partially understand that ......is there any other way u can explain that to me but thank you for the response!

Did you read these yet?
http://arduino.cc/en/Reference/For
http://arduino.cc/en/Reference/While

Yes im going to try my best ........im only 14 and like just got arduino and love it is jjust difficult because ive never done anything with code. But im sure ill get it. Thank you!

Oh sorry but another thing is would i have to do that int x thing in the begining or what?

I normally do this:

// pre-setup code
byte pin2 = 2;
byte otherVariables = 0; // or other value from 0 to 255, use int for 0-65535, and unsigned long for 0 to 2*32-1 (49million+)
// most people use int when byte is all that is needed.

void setup(){
pinMode (pin2, OUTPUT); // or INPUT_PULLUP
Serial.begin(9600); // for debugging statements
}

void loop(){

// whatever it is that will happen over and over and over

}

What does all of that do like is that what i have to put into my code?

The stuff before setup defines the names & variable types to be used.
The stuff in setup runs once.
The stuff in loop is the code that will run over.

There are numerous ways to program, but this what is generally done.
You can look at lots of examples in the IDE to see this.
Blink, for example.
File:Examples:Basic:Blink:

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */
 
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}