Loop Count

So basically I want this code to turn on and off the two LED's at different delays going back and forth between the two LED's for a certain amount of times at different delays. I wanted to implement the "while" statement to tell the loop to stop once it has looped a certain amount of times. Maybe I am mistaken on how a loop statement works?