code: def number_occurences(self, proc):
          
          return len([True for row in self.data if proc in row[self.command_name]])
docs: Returns the number of occurencies of commands that contain given text
  
          Returns:
              int: The number of occurencies of commands with given text
  
          .. note::
             'proc' can match anywhere in the command path, name or arguments.