#include <bits/stdc++.h>;
using namespace std;
int a[100],n,i,k,dem;
{
cout<<"Nhap n="; cin>>n;
for (i=1; i<=n; i++);
{
cout<<"A["<<i<<"]="; cin>>a[i];
}
cout<<"Nhap k="; cin>>k;
dem=0;
for (i=1; i<=n; i++);
if (a[i]==k) dem=dem+1;
cout<<dem;
return 0;
}