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