title: Get-Event logs and count errors
body: <p>I need to count how many error events are logged under "Application" and "System" of a remote computer using powershell. I have started this but not got to far.</p>
  
  <blockquote>
    <p>Get-EventLog -computername COMPUTER -Logname Application -EntryType Error | Measure-Object -Sum Entrytype | Format-Table Count</p>
  </blockquote>
  
  <p>This is very rough right now and the two problems so far is that the above command only does ONE type of log at a time, and 
  the format of the table isnt very useful. </p>
  
  <p>Id like to have extra headers so it outputs Computername, Entrytype and Count. </p>
  
  <p>How can I get powershell to list both events and have extra headers with the table? </p>