Update Num_loops