public function getLastPageNumber()
    {
        $this->loadData();
        $count = count($this->filteredData);

        return ceil($count / $this->pageSize);
    }
public function getLastPageNumber()
    {
        $this->loadData();
        $count = count($this->filteredData);

        return ceil($count / $this->pageSize);
    }
public function getLastPageNumber ( ) { $ this -> loadData ( ) ; $ count = count ( $ this -> filteredData ) ; return ceil ( $ count / $ this -> pageSize ) ; }
Get the number of the last page.

@return int
Get the number of the last page .