def METHOD_NAME(self):
    def simple_step(item):
        if isinstance(item, tuple):
            attr = item[0]
            if hasattr(self._driver, attr):
                self.steps_total += 1
        # STRING
        elif isinstance(item, str):
            attr = item
            if hasattr(self._driver, attr):
                self.steps_total += 1
        # .generator is a Generator
        elif hasattr(item, "generate"):
            item = getattr(item, "generate")
            for p in item():
                simple_step(p)
    self.steps_total = 0
    for pitem in self.items:
        simple_step(pitem)