code: def niterations(self):
          
          itercounter = self._itercounter
          if itercounter is None:
              itercounter = 0
          lastclear = self._lastclear
          if lastclear is None:
              lastclear = 0
          return itercounter + lastclear
docs: The current number of iterations.