title: How to find no. of times a character has occured in bash string?
body: <p>I have a string in bash $str. </p>
  
  <pre><code>str="ayushmishraalightayushas"
  </code></pre>
  
  <p>I want to find no of times the letter <strong>'a'</strong> occured in the string.</p>