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