code: public static <T> JoinerQuery<T, Long> count(EntityPath<T> from) {
          JoinerQueryBase<T, Long> request = new JoinerQueryBase<>(from, true);
          request.distinct(false);
          return request;
      }
docs: Build count query
  
  @param from alias of source entity
  @param <T> type of source entity
  @return count joiner query