Count pages in crabe.pdf

I need to write count in pdf pages.

I am using this code :

$pdf->SetXY(-25,-5);
$pdf->MultiCell(20, 2, $outputlangs->transnoentities("Σελίδα ") .$pdf->PageNo(), 0, ‘R’, 0);

this code write first page, if two pages write only second pages ,but not write first and second pages.

help?

Any help???

Appears valid FPDF command, might want to open a ticket on GitHub for this…