Counting, permutations, and combinations