loop 4 times panobot

The stepper is connected to a big easy stepper shield. I am just starting with arduino and electronics, so everything is new to me..
For this moment the stepper is working, but it keeps going on (rotate 90 degr. take a picture, rotates, picture..) until i disconnect the power. What i wand is that it stops after 4 movements of 90 degrees and 4 pictures. Next step is a better code and more features.. I am learning.. :wink: