title: Number of words in a Swift String for word count calculation
body: <p>I want to make a procedure to  find out how many words are there in a string, separated by space, or comma, or some other character. And then add up the total later.</p>
  
  <p>I'm making an average calculator, so I want the total count of data and then add up all the words.</p>