#include<stdio.h>
int main(){
int n,a[100],x,i,showtime=0;
scanf("%d",&n);
for(i =0;i<n;i++)
scanf("%d",&a[i]);
scanf("%d",&x);
while(n>=0){
if(x==a[n--]) showtime++;
}printf("%d\n",showtime);
}
#include<stdio.h>
int main(){
int n,a[100],x,i,showtime=0;
scanf("%d",&n);
for(i =0;i<n;i++)
scanf("%d",&a[i]);
scanf("%d",&x);
while(n>=0){
if(x==a[n--]) showtime++;
}printf("%d\n",showtime);
}