Getting tubes tied

How many babies do you have to have in order to get tubes tied... or can you get one after having one