Protected OptionalcontextProtected OptionalcounterProtectedvalueProtectedvalueadd records a unique actor in the dedup counter. If the actor has
already been counted, the call is ignored.
ProtectedensureensureInitialized throws if this counter has not been initialized.
getID returns the ID of this counter.
getValue returns the value of this counter. Always a number since
DedupCounter only supports IntDedup.
getValueType returns the value type of this counter.
initialize links this proxy to a ChangeContext and CRDTCounter.
toJSForTest returns value with meta data for testing.
DedupCounteris a Counter that uses HyperLogLog to count unique actors. Useadd(actor)to record a unique visitor. Provides approximate counts with ~2% error rate.