title: Using LINQ to project a list to a key / count 2-dimensional array
body: <p>Let's say I have a list of an object like this:</p>
  
  <pre><code>var users = new List&lt;User&gt;();
  users.Add(new User() { FirstName = "Ek0nomik" });
  users.Add(new User() { FirstName = "Ek0nomik" });
  users.Add(new User() { FirstName = "Foobar" });
  </code></pre>
  
  <p>I am trying to get a 2-dimensional array that contains the name and the count of that name (for the purpose of returning it as JSON with use in Google Charts) from that list.  This is what the array would contain:</p>
  
  <pre><code>["Ek0nomik", 2],
  ["Foobar", 1]
  </code></pre>
  
  <p>I was initially trying to use <code>.Select</code> to project a new object, but that projects for each object within the list so I don't think that method will get me there.</p>