title: How to find the number of occurrences of a string in file using windows command line?
body: <p>I have a huge files with e-mail addresses and I would like to count how many of them are in this file. How can I do that using Windows' command line ?</p>
  
  <p>I have tried this but it just prints the matching lines. (btw : all e-mails are contained in one line)</p>
  
  <p><code>findstr /c:"@" mail.txt</code></p>