How can I write a loop(L1) that loops n times where n is equal to a counter variable(Counter), which I placed in another loop(L2). Both loops need to be executed one after a