I have to find the number of codes with maximum codeword length $n$ over an alphabet $S$ of size $r$.
The back of my book uses the fact that this number is equal to the number of subsets of $S_n$ and proceeds from there.
Could someone explain to me why this is the case? The textbook has not covered subsets yet, so I am wondering what the connection between the two is.
Thank you.