Adjust the number of iterations in the loop demo