title: Linq select to new object
body: <p>I have a linq query </p>
  
  <pre><code>var x = (from t in types select t).GroupBy(g =&gt;g.Type)
  </code></pre>
  
  <p>which groups objects by their type, as a result I want to have single new object containing all of the grouped objects and their count. Something like this:</p>
  
  <pre><code>type1, 30    
  type2, 43    
  type3, 72
  </code></pre>
  
  <p>to be more clear: grouping results should be in one object not an object per item type</p>