import math


def num_permutations(n):
    """
    Get the number of length n permutations, n! (number of permutations of n elements = number of elements in
    :math:`S_n`).

    :param n: Length of permutations.
    :return: Number of length n permutations.
    :rtype: int
    """
    return math.factorial(n)