java版
public static Integer countKey(String k, String html) {
String[] words = html.split("\\b" + k + "\\b");
return words.length - 1;
}
nodejs版
function countKey(k, html) {
var words = html.split(k);
return words.length - 1;
}