There is no limit on how many houses you can own in the Elder Scrolls Online, basically you could buy all the houses that are available in the game if you have the funds. Some of the houses are crown store exclusive though, that means if you truly want to get them all you will have to pay real money for it.
There are two ways to obtain houses, either via ingame with gold or via the crown store with crowns aka real money.