public static <R extends Record> int getTableCount(final DataSource dataSource,
                                                       final Table<R> table) {

        return getTableCountWhen(dataSource, table, null);
    }
If {@code isTimed} is {@code true} it will measure the duration of consumer,
else it will return a zero duration. {@code isTimed} can be set using
{@code LOGGER.isDebugEnabled()} for example.
stroom-db-util/src/main/java/stroom/db/util/JooqUtil.java