code: public static int countsForSkipBigram(String text, String pattern) {
          int count = 0;
          Pattern p = Pattern.compile(pattern);
          Matcher matcher = p.matcher(text);
          while (matcher.find()) {
              LOG.debug("正则表达式匹配：" + matcher.group());
              count++;
          }
          return count;
      }
docs: 在text中包含的pattern数目
  
  @param text
  @param pattern
  @return