[][src]Function words_count::count

pub fn count<S: AsRef<str>>(s: S) -> WordsCount

Count the words in the given string. In general, every non-CJK string of characters between two whitespaces is a word. Dashes (at least two dashes) are word limit, too. A CJK character is considered to be an independent word.