H-1B can be renewed as many
times as necessary until hits maximum 6 years, does not matter by the same emplyer or not. If you change the employer, new employer need to file new H-1B petition for you at the time of transfer. Then the employer can renew it when it is necessary.