Loop certain number of times then do action

I do not have a pulldown resistor