src/transformers/generation/beam_search.py/BeamHypotheses/__len__
class BeamHypotheses:    def __len__(self):
        """
        Number of hypotheses in the list.
        """
        return len(self.beams)