#include<stdio.h>
int main() {
    int i, n, score, targetScore;
    scanf("%d", &n);
    int A[101];
    for (i = 0; i < 101; i++)A[i] = 0;
    for (i = 0; i < n; i++) {
        scanf("%d", &score);
        A[score]++;
    }
    scanf("%d", &targetScore);
    printf("%d\n", A[targetScore]);
    return 0;
}