example of counting techniques in probability