public function count($count = null)
    {
        if ($count === null) {
            return isset($this->options['count']) ? $this->options['count'] : 0;
        } else {
            $this->options['count'] = $count;
            return $this;
        }
    }
public function count($count = null)
    {
        if ($count === null) {
            return isset($this->options['count']) ? $this->options['count'] : 0;
        } else {
            $this->options['count'] = $count;
            return $this;
        }
    }
public function count ( $ count = null ) { if ( $ count === null ) { return isset ( $ this -> options [ 'count' ] ) ? $ this -> options [ 'count' ] : 0 ; } else { $ this -> options [ 'count' ] = $ count ; return $ this ; } }
get or set the items count. It will be used to determined the size of the pagination set

@param  int $count
@return static
get or set the items count . It will be used to determined the size of the pagination set