The number of planets that orbit the sun depends on what you mean by “planet,” and that’s not so easy to define ...
An object eight times the mass of Jupiter may have swooped around the sun, coming superclose to Mars' present-day orbit ...
The enormous visitor to our solar system may have been about 8 times the mass of Jupiter, and come nearly as close to the sun ...