def steps_stored (self):
        """
        Return the total number of steps stored in the undoer.
        """
        result = 0
        for command in self._commands[1:-1]:
            result+=len(command)
        return result

        Return the total number of steps stored in the undoer.
        
recipes/Python/306866_A_basic_undo_mechanism/recipe-306866.py