getAliasNbpages not recognize in scriptcase

I got this issue when I run the application for create pdf report $this->getAliasNbPages()
it not recognize getAliasNbPages anyone can help me for this issue?

Did you try this?

$pdf->getAliasNbPages()