title: How to count number of rows in PowerShell
body: <p>I have a text file that I need to read in PowerShell.</p>
  
  <p>The last character in each row is either a Y or a N.</p>
  
  <p>I need to go through the file and output how many Y's and N's are in there.</p>
  
  <p>Any ideas?</p>