presto-main/src/main/java/io/prestosql/type/setdigest/SetDigest.java/SetDigest/cardinality
class SetDigest:    public long cardinality()
    {
        if (isExact()) {
            return minhash.size();
        }
        return hll.cardinality();
    }