count of permutations of 3 digits