Log the number of iterations.