title: Java: Find the number of times a word is present in a String (is there something similar to expression of C#)?
body: <p>I am interesting in finding the number of times a word appears in a String.<br>
  I have seen the example of SUN <a href="https://stackoverflow.com/questions/3016522/count-the-number-of-times-a-string-appears-within-a-string">Matcher Demo</a> using the matcher (constructs a regex and counts the groups).  </p>
  
  <p>I was interested if this is the only way or there is something else like e.g.  </p>
  
  <p><a href="https://stackoverflow.com/questions/3016522/count-the-number-of-times-a-string-appears-within-a-string">Regex.Matches( input,  "true" ).Count</a> in C# (from SO question).  </p>
  
  <p>Or in my context:  </p>
  
  <p>If I am in a loop using <code>contains</code> to check if certain words in the <code>List</code> appear in the <code>String</code> is there a simple/elegant way to get (on the spot??) the number of times the word occurs (that I already know it exists)?</p>