src/Bigcommerce/Api/Client.php
public static function getCount($path)
    {
        $response = self::connection()->get(self::$api_path . $path);

        if ($response == false || is_string($response)) {
            return $response;
        }

        return $response->count;
    }
public static function getCount($path)
    {
        $response = self::connection()->get(self::$api_path . $path);

        if ($response == false || is_string($response)) {
            return $response;
        }

        return $response->count;
    }
public static function getCount ( $ path ) { $ response = self :: connection ( ) -> get ( self :: $ api_path . $ path ) ; if ( $ response == false || is_string ( $ response ) ) { return $ response ; } return $ response -> count ; }
Get a count value from the specified endpoint.

@param string $path api endpoint
@return mixed int|string count value or XML string if useXml is true
Get a count value from the specified endpoint .