code: private static int getCharCount(Element e, String s) {
          if (s == null || s.length() == 0) {
              s = ",";
          }
          return getInnerText(e, true).split(s).length;
      }
docs: Get the number of times a string s appears in the node e.
  
  @param e
  @param s
  @return