def fitness(combo, attempt):
    """Compare items in two lists and count number of matches."""
    grade = 0
    for i, j in zip(combo, attempt):
        if i == j:
            grade += 1
    return grade