docs: public String getSimpleCountSql(final String sql, String name) {
          StringBuilder stringBuilder = new StringBuilder(sql.length() + 40);
          stringBuilder.append("select count(");
          stringBuilder.append(name);
          stringBuilder.append(") from (");
          stringBuilder.append(sql);
          stringBuilder.append(") tmp_count");
          return stringBuilder.toString();
      }