There is no universal limit of four tax residences. Multiple residence permits can coexist, while each state applies its own tax criteria to the individual's actual situation.
When two countries consider the same taxpayer to be resident, the double taxation agreement may provide criteria for resolving the conflict for treaty purposes. It's not a matter of freely choosing how many residences to declare: the facts, domestic rules, and the treaty actually applicable must be examined.
Learn more: tax residency abroad.