Counting Methods And Probability Theory