src/Bigcommerce/Api/Client.php
public static function getOrderStatusesWithCounts($filter = array())
    {
        $filter = Filter::create($filter);
        $resource = self::getResource('/orders/count' . $filter->toQuery(), "OrderStatus");
        return $resource->statuses;
    }
public static function getOrderStatusesWithCounts($filter = array())
    {
        $filter = Filter::create($filter);
        $resource = self::getResource('/orders/count' . $filter->toQuery(), "OrderStatus");
        return $resource->statuses;
    }
public static function getOrderStatusesWithCounts ( $ filter = array ( ) ) { $ filter = Filter :: create ( $ filter ) ; $ resource = self :: getResource ( '/orders/count' . $ filter -> toQuery ( ) , "OrderStatus" ) ; return $ resource -> statuses ; }
The order count grouped by order status

@param array $filter
@return Resources\OrderStatus
The order count grouped by order status