Restrict Number of Class Users per team

Is it possible to restrict the number of players that can select a particular class? It would be nice if there were an option in the class selection UI to limit the available options/render the UI dynamically based on the classes available. For example, I’d like both teams to be able to select at most one of each class, but cannot do so with the current UI.