integer public \Bitrix\Main\UI\PageNavigation::getPageCount( );
Non-static method returns number of pages or 0 if page number doesn't exist.
No parameters