code: public Query<T> getCountQuery() {
      if (Strings.isEmpty(countStatement)) { return null; }
      QueryBean<T> bean = new QueryBean<T>();
      bean.setStatement(countStatement);
      bean.setLang(lang);
      bean.setParams(params);
      bean.setCacheable(cacheable);
      return bean;
    }
docs: Returns count query {@link org.beangle.commons.dao.query.Query}.