是否有一个函数来计算字符串中的单词数?例如:
str1 <- "How many words are in this sentence"
返回7的结果.
string r word-count
r ×1
string ×1
word-count ×1