title: How do I get the sum of the Counts of nested Lists in a Dictionary without using foreach?
body: <p>I want to get the total number of items in the <code>List</code>s in the following <code>Dictionary</code>:</p>
  
  <pre><code>Dictionary&lt;int, List&lt;string&gt;&gt; dd = new Dictionary&lt;int, List&lt;string&gt;&gt;() {
      {1, new List&lt;string&gt; {"cem"}},
      {2, new List&lt;string&gt; {"cem", "canan"}},
      {3, new List&lt;string&gt; {"canan", "cenk", "cem"}}
  };
  
  // This only returns an enumerated array.
  var i = (from c in dd
           select c.Value.Count).Select(p=&gt;p);
  </code></pre>