fin-runlengths function

Runlengths of a time series