#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e6+7;
int main()
{
ios::sync_with_stdio(false);
cin.tie(NULL);
vector<int>v;
int n,target;
cin >> n;
for (int i = 0; i < n; i++)
cin >> v[i];
cin >> target;
cout << count(v.begin(),v.end(),target);
return 0;
}