EWR-BOS-YYZ
YYZ-MIA-BZE
BZE-MIA-LAX
That looks like 6 to me. What is the 7th segment?
And , by the way, you can fly direct from LGA or JFK to YYZ, so wouldn't it be easier to go there rather than transit BOS (which adds at least 2.5 hours to the journey and more on most itineraries)?