The ring size is the number of one-time public keys (outputs) in the ring-signature that authorizes the transaction. One of those belongs to the actual sender, while the remaining ones (foreign outputs) are used for obfuscation and any existing output found on the blockchain can be picked. This achieves plausible deniability in that any given input in a transaction could have come from any of the outputs used in the ring signature.