Correctly set the number containers needed.