@staticmethod
def comment_measure_numbers(score):
    """
        Comments measure numbers in ``score``.
        """
    import abjad
    offset_to_measure_number = {}
    for context in abjad.iterate(score).components(abjad.Context):
        if not context.simultaneous:
            break
    site = 'abjad.SegmentMaker.comment_measure_numbers()'
    measures = abjad.select(context).leaves().group_by_measure()
    for i, measure in enumerate(measures):
        measure_number = i + 1
        first_leaf = abjad.select(measure).leaf(0)
        start_offset = abjad.inspect(first_leaf).timespan().start_offset
        offset_to_measure_number[start_offset] = measure_number
    for leaf in abjad.iterate(score).leaves():
        offset = abjad.inspect(leaf).timespan().start_offset
        measure_number = offset_to_measure_number.get(offset, None)
        if measure_number is None:
            continue
        context = abjad.inspect(leaf).parentage().get(abjad.Context)
        if context.name is None:
            string = f'% [{context.lilypond_type} measure {measure_number}]'
        else:
            string = f'% [{context.name} measure {measure_number}]'
        literal = abjad.LilyPondLiteral(string, 'absolute_before')
        tag = abjad.Tag('COMMENT_MEASURE_NUMBERS').append(site)
        abjad.attach(literal, leaf, tag=tag)
