ee.Reducer.countRuns

Returns a Reducer that computes the number of runs of distinct, non-null inputs.
UsageReturns
ee.Reducer.countRuns()Reducer

No arguments.