Create Num_loops