def total_cycles(self) -> int:
        """The number of total number of cycles in the structure."""
        return sum((int(re.sub(r'\D', '', op)) for op in self.tokens))
def total_cycles ( self ) -> int : return sum ( ( int ( re . sub ( r'\D' , '' , op ) ) for op in self . tokens ) )
The number of total number of cycles in the structure.