n = int(input()) arr = list(input().split(" ")) # v = input() # c = 0 # for i in range(n): # if arr[i]==v : c+=1 # print(c) print(arr.count(input()))