Measure repeats of more than two repeats are printed with a counter if the countPercentRepeats context property is set.
countPercentRepeats
\version "2.24" \relative c'' { \set countPercentRepeats = ##t \repeat percent 4 { c1 } }