public static function countWords($string) { return count(preg_split('/\\s+/u', $string, null, PREG_SPLIT_NO_EMPTY)); }