The answer is 32. A box for every four hens. They do have their favorites. I have a box on the floor of my one coop and all seven of last years pullets us it, not the nests on the wall.
Another question would be, do I have enough room in the coop for them.