listens to the number of iterations in the configuration