title: How to count DIV with specific classes
body: <p>I want to count the DIVs with specific class names and then add the number in H2 tag</p>
  <p>Desired outcome</p>
  <pre><code>&lt;h2 id=&quot;result&quot;&gt;5 Cards found&lt;/h2&gt;
  
  &lt;div class=&quot;post_card&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;post_card&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;post_card&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;post_card&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;post_card&quot;&gt;&lt;/div&gt;
  </code></pre>