Added a number of iterations counter