np_multiset function

Calculate the number of r-permutations of a multiset