n = int(input())
l = map(int, input().split())
x = int(input())
count = 0
for i in l:
    if i == x:
        count += 1

print(count)