private function getPagesCount()
    {
        if ($this->getItemsPerPage() != 0) {
            return (int) abs(ceil($this->getTotalAmount() / $this->getItemsPerPage()));
        } else {
            return 0;
        }
    }
private function getPagesCount()
    {
        if ($this->getItemsPerPage() != 0) {
            return (int) abs(ceil($this->getTotalAmount() / $this->getItemsPerPage()));
        } else {
            return 0;
        }
    }
private function getPagesCount ( ) { if ( $ this -> getItemsPerPage ( ) != 0 ) { return ( int ) abs ( ceil ( $ this -> getTotalAmount ( ) / $ this -> getItemsPerPage ( ) ) ) ; } else { return 0 ; } }
Count total amount of pages

@return integer
Count total amount of pages