Depends on the sanction you are playing (ASA, USFA, USSSA, PGF, ect), but if the pitcher is just swapping positions, but is staying in the game, and there are no changes to the batting order, there are no limits to the number of switches. If the pitcher is coming out of the game for a sub, and re-enters, I think she is only allowed to come back one time.