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