\Bitrix\Sale\Shipment::getBasketItemQuantity( \Bitrix\Sale\BasketItem $basketItem );
Method returns returns number of products in a shipment. Non-static method.