How do I get my loop to cycle multiple times?

Ok, I fixed the quote tags to be code tags.

So how do I avoid using delay?
And how do I get this motor to run four times with a time interval between?