Answer:
There are basically three factors that influence the numbers of moons each planet has, and those are the following:
The size (mass) of the planet – ability to capture objects.
Collision – just like our Moon formed.
Co-formation – formed at the same time as the planet