Get number of iterations