Counting Techniques and Probability