Runs the blocks inside a specified number of times