title: group and count duplicates to a dictionary with linq
body: <p>with the following list:</p>
  
  <pre><code>a
  a
  b
  b
  b
  c
  </code></pre>
  
  <p>I would like to make, using linq, a dictionary that contains:</p>
  
  <pre><code>a =&gt; 2
  b =&gt; 3
  c =&gt; 1
  </code></pre>
  
  <p>for now I have:</p>
  
  <pre><code>var Q = (from l in List
          group l by l into g
          let Count = g.Count()
          select new { Key = g.Key, Value = Count})
  </code></pre>
  
  <p>How do I turn this to a dictionary?</p>
  
  <p>Edit:
  I changed the last line to:</p>
  
  <pre><code>select new Dictionary&lt;string, int&gt; { g.Key, Count });
  </code></pre>
  
  <p>but I still don't have the right syntax</p>