how to count special character in a string
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/11238184/string-functions-how-to-count-delimiter-in-string-line">String Functions how to count delimiter in string line</a>  </p>
</blockquote>



<blockquote>
  <p>I have a string as str = "one$two$three$four!five@six$" now how to count Total number of "$" in that string using java code.</p>
</blockquote>
