#include <iostream>
using namespace std;
int main(void)
{
int arr[100];
int num, i, target, total = 0;
cin >> num;
if (num >= 1 && num <= 100)
{
for (i = 0; i < num; i++)
{
cin >> arr[i];
}
}
else
{
;
}
cin >> target;
if (target >= -100 && target <= 100)
{
for (i = 0; i < num; i++)
{
if (target == arr[i])
{
total++;
}
else
{
;
}
}
}
else
{
;
}
cout << total << endl;
return 0;
}