import math


def _get_num_combos(n: int, r: int):
    """Return number of combinations.

    Parameters
    ----------
    n : int
        Number to choose from
    r : int
        Number to choose

    Returns
    -------
        Number of combinations
    """
    return math.factorial(n) / (math.factorial(n - r) * math.factorial(r))