Calculates the number of permutations (arrangements) of a set of items, where the order of selection matters.