Count the number of tabs in a string
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/541954/how-would-you-count-occurences-of-a-string-within-a-string-c">How would you count occurences of a string within a string (C#)?</a>  </p>
</blockquote>



<p>I am reading a file in line by line and need to count the number of tabs that each string contains. How can I get a count of the tabs i.e. \t from the string.</p>

<p>Thanks for your help</p>
