title: Get count of an IQueryable<T>
body: <p>Assume we have the following collection</p>
  
  <pre><code> IEnumerable&lt;int&gt; list = new List&lt;int&gt; { 11, 12, 13, 14, 15, 16, 17, 18, 19, 10 };
   var query = list.Skip(5).Take(4);
   SomeMethod(query.AsQueryable()); 
   .
   .
   .
   public void SomeMethod(IQueryable&lt;T&gt; query)
   {
        var collectionCount = ?????  // count should be 10 not 4.
        ...
   }
  </code></pre>
  
  <p>How can I get the count of the original collection (without applying Skip and Take sub-queries) of the query in the SomeMethod.</p>
  
  <p>Thanks.</p>