code: static QueryMeta buildCountSql(ActiveRecord activeRecord) {
          QueryMeta     queryMeta = new QueryMeta();
          StringBuilder sqlBuf    = new StringBuilder("SELECT COUNT(*) FROM " + activeRecord.getTableName());
          int[]         pos       = {1};
          List<Object>  list      = parseWhere(activeRecord, pos, sqlBuf);
  
          List<Object> temp = andWhere(activeRecord, pos, sqlBuf);
          if (null != temp) {
              list.addAll(temp);
          }
  
          String   sql  = sqlFilter(sqlBuf.toString());
          Object[] args = list.toArray();
          queryMeta.setSql(sql);
          queryMeta.setParams(args);
          return queryMeta;
      }
docs: 构造一个查询记录数SQL
  
  @param activeRecord ActiveRecord
  @return 返回QueryMeta对象