public static <T> Collector<T, ?, Long> countDistinct() {
        return countDistinctBy(t -> t);
    }
Get a {@link Collector} that calculates the
<code>COUNT (DISTINCT *)</code> function.
jOOL/src/main/java/org/jooq/lambda/Agg.java