Loop certain number of times then do action

I have a PLC that operates at 24V that is suppose to initiate the program