Conveyor belt simulation

for this project I can keep it simple,

if button is pressed (motor stops after count reaches 6)and if button not pressed (stops after 3, )
system will start when... you plug it in bascily? it runs from the start

(sorry if im not being clear)