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