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