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