Each property you own counts as one unit. If you have set up rooms on a property, each room counts as one unit instead, whether or not it is let; once any tenancy of a room has ended, archive the room and it stops counting. Properties you have sold do not count.
A property counts as owned until it is actually transferred away. If a sale is pending, it and its rooms still count towards your plan until the transfer completes.
Sold and past properties stay on your account and readable, even though they no longer count towards your plan.
For example, one house with six rooms set up is 6 units, and a house with three rooms set up plus two properties with no rooms set up is 5 units.