add leetcode count number of words in a string