#include <iostream>
using namespace std;
int main()
{
int n, x;
cin >> n;
int count=0;
int arr[100] = { 0 };
for (int i = 0; i < n; i++)
{
cin >> arr[i];
}
cin >> x;
for (int i = 0; i < n; i++)
{
if (arr[i] == x)
{
count++;
}
}
cout << count << endl;
}
using namespace std;
int main()
{
int n, x;
cin >> n;
int count=0;
int arr[100] = { 0 };
for (int i = 0; i < n; i++)
{
cin >> arr[i];
}
cin >> x;
for (int i = 0; i < n; i++)
{
if (arr[i] == x)
{
count++;
}
}
cout << count << endl;
}