code: private String createCountSql(String sql) {
          StringBuilder sb = new StringBuilder("select count(0) from ( ");
          sb.append(sql).append(" ) as t");
          return sb.toString();
      }
docs: 生成统计总条数SQL
  
  @param sql
  @return