What’s the maximum number of planets that could orbit the sun?

The solar system contains eight planets: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus and Neptune, all of which circle the sun due to its intense gravitational pull. But is this the maximum number of planets that can orbit the sun? Or is there room for more?

Compared with other known planetary systems, the solar system contains an unusually high number of planets. In total, there are 812 known planetary systems with three or more confirmed planets, and only one other known system, Kepler-90, that contains as many planets as the solar system, according to The Extrasolar Planets Encyclopaedia