But now you have to look at the expected value as well.
A 10 million dollar company, lets say at a conservative 5x earnings multiple means 2mil annual profits. At 80% margin that's 2.5mil ARR. For a B2B SaaS product you should be able to get at least $1,000 / customer annually, which means you need to find 2500 customers to own 100% of a 10 million dollar company, which in the age of email and Facebook marketing is very much within reach.
And these are conservative numbers. A strategic buyer might very well pay 10x if you're showing nice growth, margins of 90% are not unrealistic in SaaS, and you could possibly raise prices depending on the value you are providing and who you're selling to.
Now ask how many stars have to align to reach a billion dollar valuation, assuming you haven't been screwed over by your investors by the time you reach that point.