title: Count the number of dictionaries from a list in a dictionary
body: <p>I have a dictionary that contains a list of dictionaries. I want to count the number dictionaries within the list. My data looks like this:</p>
  <pre><code>{
  &quot;Ratings&quot;: [
      {
          &quot;User&quot;: &quot;User1&quot;,
          &quot;Rating&quot;: 2
      },
      {
          &quot;User&quot;: &quot;User2&quot;,
          &quot;Rating&quot;: 4
      }
  }
  </code></pre>
  <p>I tried the following which worked but wanted to know if there is a better way.</p>
  <pre><code>print(sum(map(len, dict_1.values())))
  </code></pre>