title: lambda equivalent to collection.Count(predicate)
body: <p>What would be a lambda expression equivalent for the following code</p>
  
  <pre><code>int[] numbers = { 3, 4, 5, 6, 7, 8 };
  int count = numbers.Count(x =&gt; x &gt; 5 == true); 
  </code></pre>
  
  <p>I tried this one, but it didn't compile:</p>
  
  <pre><code>var c = from number in numbers where number &gt; 5 select numbers.Count;
  </code></pre>
  
  <p>this one didn't compile either:</p>
  
  <pre><code>var c = from number in numbers where number &gt; 5 select new {numbers.Count};
  </code></pre>