def part_one(password_list):
    """Count the number of passwords that meet their accompanying criteria.
    In this case, a password must have a specified character occur between a
    minimum and maximum number of times.

    :param password_list: A list of tuples from parse_input
    :return: int
    """
    valid_password_count = 0
    for line in password_list:
        minimum, maximum, character, password = line

        if minimum <= password.count(character) <= maximum:
            valid_password_count += 1

    return valid_password_count