ncombinations function

Number of combinations