def get_answer1(parsed_data):
    """Get part 1 answer."""
    counter = 0
    for item in parsed_data:
        low, up, letter, password = item
        if password.count(letter) >= low and password.count(letter) <= up:
            counter += 1
    return counter