N = int(input()) number_list = map(int, input().split()) v = int(input()) print(sum([1 for number in number_list if number == v]))