How does the IOC determine how many athletes represent a country?

America gets literally hundreds of representatives while Saudi Arabia, for example, only gets two.
2 answers 2