If counter<= Number of iterations