I don't think there is a magic number.
I once helped a family of 8 all get on the same flight. It's just a matter of luck though.
It helps to be willing to split up the group between Y, J, and F if multiple classes are available on the same flight.
You can search on CO.com for up to 8 pax, but ANA only supports 4.