Loop function

Hi, I am new to phaser. I would like to know how do I loop the bullet shots in the game and set the amount of bullet shots in the script? There are different button to control the shots.