Question: 1 carton how many pieces?
Answer: That would need to be dependent on attributes of products (with box 50 items per carton / without box 200 items per carton). According to that information, the shipping module would be able to figure out how many cartons are in one order.