An algorithm for the count-distinct problem that approximates the number of distinct elements in a multiset.