Computing Probability Using Counting Theory