Count the ways to choose r items from n — permutations (order matters) and combinations (order doesn’t).