title: Find and Count Words in a String in Delphi?
body: <p>I have a string comprising numerous words. How do I find and count the total amount of times that a particular word appears?</p>
  
  <pre><code> E.g "hello-apple-banana-hello-pear"
  </code></pre>
  
  <p>How would I go about finding all the "hello's" in the example above?</p>
  
  <p>Thanks.</p>