You can fit 10 standard pallets in a 20’ container and 21 standard pallets in a 40’ container.
Here is a container stuffing calculator to help you calculate how many loose cartons can fit in your container.