n=int(input()) arr=list(map(int,input().split())) s=int(input()) print(arr.count(s))