After Meneldir there were thirty Kings of Gondor before the last king was lost and the rule of the land was given to the Ruling Stewards. After a long interrum the kingship of both Arnor and Gondor was reclaimed by Aragorn after the War of the Ring.