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