len = int(input())
list = list(map(int,input().split()))
num = int(input())

print(list.count(num))