Computing the volume of a sphere is straightforward 4/3*pi*R^3

As is the volume of a rectangular space length*width*height (e.g. 10*10*6)

How might I go about determining how many spheres would fit into a rectangular space, assuming the spheres are solid and not flexible?