def frequency(a, x):
    count = 0
    for value in a:
        if value == x:
            count += 1
    return count