def check_number_of_selections(selections : list) -> int:
    """Checks number of options selected in a list.

    This is used to ensure that the user doesn't select more than four options, as
    the task suggests the program should.

    Args:
        selections (list): List of bools representing which options are selected.

    Returns:
        int: Number of options selected.
    """
    number_of_selections = 0
    for item in selections:
        if item:
            number_of_selections += 1
    return number_of_selections