npermutations function

Number of permutations