Measure_counter_engraver and skipTypesetting
\version "2.24.0"
showLastLength = R1*2
\new Staff \with {
\consists Measure_counter_engraver
} \fixed c' {
\startMeasureCount
c1
d1
e1
\stopMeasureCount
}
When typesetting resumes, the measure counter does not appear. There are probably a number of other cases that are not handled well.