/** * Get the total number of pages * @return int */ public function getPageCount() { return (int) (($this->store->getTotal() + $this->pageSize - 1) / $this->pageSize); }