def category_hamming_dist(x, y):
    """Counts number of mismatches as distance between two lists"""

    dist = 0
    for i in range(0, len(x)):
        if x[i] != y[i]:
            dist += 1

    return dist