title: Counting objects from Where-Object
body: <p>I am currently trying to write a little powershell script (I have no experience in Powershell scripting so was wanting to use this as a test) that loops through our svn repositories counting how many commits have been made with a comment of "Reviewed by; No-one" as this indicates an unreviewed commit. </p>
  
  <p>I currently have the following</p>
  
  <pre><code>$repositorys = @("Path1", "path2","path3","path4")
  $matches = 0
  foreach ($path in $repositorys){
  "Path: {0}" -f $path.tostring() 
  ( [xml] (svn log --xml $path)).log.logentry | Where-Object {$_.msg -imatch "(Reviewed By: (no(.*)one))" } | measure-object | format-list
  
  }
  </code></pre>
  
  <p>This gives me the output with the count depending on how many matches it has found</p>
  
  <pre><code>          Count Average             Sum                 Maximum             Minimum             Property
            ----- -------             ---                 -------             -------             --------
                1
  </code></pre>
  
  <p>If I remove the measure-object then I get the  details of the SVN commit  (revision, author, message, date etc.) </p>
  
  <p>Essentially what I want to be able to report is the number of un-reviewed commits and there details (so essentially a merge between the two methods described above). So I have report that looks like</p>
  
  <p>Path1: </p>
  
  <pre><code>Number of un-reviewed commits: xx
     Revision             Author
     --------             ------- 
      x                    x
  </code></pre>
  
  <p>Can anyone enlighten me?? Is this possible?</p>