flutter check number of charactor in a word code example Example: dart count words in string return str.split(' ').length;