select count(*) from ec_items where order_id=:order_id and item_state in ('shipped', 'arrived', 'received_back')