title: PHP Simple HTML Dom Parser count specific results?
body: <p>Right now i am working around one PHP script based on <a href="http://simplehtmldom.sourceforge.net/" rel="nofollow">http://simplehtmldom.sourceforge.net/</a>.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;?PHP
  foreach ($html-&gt;find('li.tooltip') as $ul) {
      $id = $ul-&gt;id;
      $dt = "data-text";
      $dt = "data-text";
      $cid = "colvar-id";
      $datatext = $ul-&gt;$dt;
      $colvarid = $ul-&gt;$cid;
      $countN = count($id);
      $number = 1;
      $N = $i++;
      if ($N == "") {
          $N = 0;
       }
     }
  ?&gt;
  &lt;?PHP echo "Result is: $countN"; ?&gt;
  </code></pre>
  
  <p>This code is suposed to count the number of founded occurencies, but it displays nothing.</p>
  
  <p>All i want is to count the founded occurencies and simply display the number of occurencies.</p>
  
  <p>Thanks in advance!</p>