Probability and Counting Problems