[2406.00221] Counting on General Run-Length Grammars