title: How to count the same strings in multiple list in a list
body: <p>I have a dictionary variable, in which have to count the same strings in multiple list inside a list</p>
  <p>example:</p>
  <pre><code>df = {&quot;123&quot;:{&quot;grade&quot;:[[&quot;DESC&quot;,'12hwe'],[&quot;age&quot;,28],[&quot;DESC&quot;,'jbwdjb'],[&quot;score&quot;,76]]}}
  </code></pre>
  <p>I want to count the number of lists with &quot;DESC&quot; inside the list( for the above example,the count of &quot;DESC&quot; is 2)</p>
  <pre><code>for i in range(df[&quot;123&quot;][&quot;grade&quot;]):
    print(count(df[&quot;123&quot;][&quot;grade&quot;][i][0]==&quot;DESC&quot;))
  </code></pre>
  <p>Any suggestions would be much appriciated !</p>