class StringFunctions {

    public static int countWords(String content) {
        return ofNullable(stripToNull(stripHtml(content))).map(contentValue ->
                contentValue.split("\\s+").length).orElse(0);
    }

    private  StringFunctions();

}