pageCount needs to be a static function