code: public int count(List<Match> matches) {
  
          Query query = queryGenerator.getCountQuery(matches);
          // 执行操作
          String sql = query.getSql();
          return countBySQL(sql, query.getParams());
      }
docs: 查询符合条件组合的记录数
  
  @param matches
  
  @return 2013-8-26 下午3:04:02 created by wangchongjie