What is the maximum number of validators?

The max number of validators in a validator set is 50418. This is called a validator set and is chosen each week from the group of validator candidates.