src/Client.php
public function getItemCount() : int
    {
        if($this->lastResponse && $this->lastResponse->getHeaderLine('X-Total-Count')) {
            return (int)$this->lastResponse->getHeaderLine('X-Total-Count');
        }

        return 0;
    }
public function getItemCount() : int
    {
        if($this->lastResponse && $this->lastResponse->getHeaderLine('X-Total-Count')) {
            return (int)$this->lastResponse->getHeaderLine('X-Total-Count');
        }

        return 0;
    }
public function getItemCount ( ) : int { if ( $ this -> lastResponse && $ this -> lastResponse -> getHeaderLine ( 'X-Total-Count' ) ) { return ( int ) $ this -> lastResponse -> getHeaderLine ( 'X-Total-Count' ) ; } return 0 ; }
Returns the total item count in the collection
Returns 0 if the header isn't set

@return int
Returns the total item count in the collection Returns 0 if the header isn t set