int main()
{
int n,x;
int arr[100] = {0};
scanf("%d",&n);
int i = 0;
for(i = 0;i<n;i++)
scanf("%d ",&arr[i]);
}
scanf("%d",&x);
int count = 0;
if(arr[i]==x)
count++;
printf("%d\n",count);
return 0;