title: Count the number of match words inside a table using javascript
body: <p>Inside a table there are words "CRITICAL" and "SAFE", I want to count how many CRITICAL are there inside the table. And as possible, please don't add class name or id name.</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;
   &lt;td&gt;CRTICAL&lt;/td&gt;
   &lt;td&gt;CRTICAL&lt;/td&gt;
   &lt;td&gt;CRTICAL&lt;/td&gt;
   &lt;td&gt;SAFE&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;SAFE&lt;/td&gt;
   &lt;td&gt;CRTICAL&lt;/td&gt;
   &lt;td&gt;CRTICAL&lt;/td&gt;
   &lt;td&gt;CRTICAL&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>