include<stdio.h> define N 100 int main(){ int n,a[N],i,m,sum=0;scanf("%d",&n);for(i=0;i<n;i++)scanf("%d",&a[i]);scanf("%d",&m);for(i=0;i<n;i++)if(m==a[i])sum++;printf("%d\n",sum);}