dart find how many strings in a string code example Example: dart count words in string return str.split(' ').length;