title: How to count HTML tags with R/Python
body: <p>[SOLVED] </p>
  
  <p>I'm looking for a way to count the tags number of a HTML page using R or Python (preference R).</p>
  
  <p>Given the following HTML code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"/&gt;
      &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;!-- Conteúdo --&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The output can be any object containing the number of tags (vector, table, list, etc.). Before that, I also need to know how to read the HTML page in the R(python) in a way that makes it easier to count. </p>
  
  <p>Thanks :)</p>