Output number of iterations in console