title: How can I get the total number of pages in DOMPDF?
body: <p>For example <code>Page 1 of 5</code>.</p>
  
  <p>There's an <a href="http://pxd.me/dompdf/www/examples.php#print_header_footer.html,html" rel="noreferrer" title="dom pdf examples">example online</a> of how to get teh <code>Page 1</code> part but not the <code>of 5</code> part. This is it:</p>
  
  <pre><code>.pagenum:before { content: "Page " counter(page); }
  </code></pre>
  
  <p>I'm using version 0.6 and <code>$PAGE_NUM</code> and <code>$PAGE_COUNT</code> does not work.</p>