n = int(input())
m = list(map(int, input().split()))
x = int(input())
print(m.count(x))