title: mpdf get total page number in pdf body (not in header/footer)
body: <p>I need to get total number of pages in pdf in pdf body. I can get total or current page number in footer by writing:</p>
  
  <pre><code>{PAGENO}/{nb}
  </code></pre>
  
  <p>but I need total number of pages in body:</p>
  
  <pre><code>$mpdf = new \Mpdf\Mpdf();
  $mpdf-&gt;SetHtmlHeader($header, 'OE');
  $mpdf-&gt;SetHTMLFooter($footer, 'OE');
  $mpdf-&gt;AddPage('', // L - landscape, P - portrait 
              '', '', '', '', 20, // margin_left
              20, // margin right
              5, // margin top
              25, // margin bottom
              10, // margin header
              10); // margin footer
  $mpdf-&gt;WriteHTML($html); //here comes the html of pdf body and i need total pages count in it.
  $mpdf-&gt;Output($title . '.pdf', 'd');
  </code></pre>