title: How to count a particular character in QString Qt
body: <p>Imagine I have a QString containing this:</p>
  
  <pre><code>"#### some random text ### other info
  a line break ## something else"
  </code></pre>
  
  <p>How would I find out how many hashes are in my QString?
  In other words how can I get the number 9 out of this string?</p>
  
  <hr>
  
  <h1>answer</h1>
  
  <p>Thanks to the answers, Solution was quite simple, overlooked that in the documentation
  using the count() method, you can pass as argument what you're counting.</p>