ee.Reducer.countDistinct

Returns a Reducer that computes the number of distinct inputs. Where applicable, the output name is "count".

UsageReturns
ee.Reducer.countDistinct()Reducer

No arguments.