#include <iostream>
using namespace std;
int main(){
int n, v[100], i, x, aparitii = 0;
cout << "Nr elemente vector : ";
cin >> n;
cout << "Vector :";
for (i=0;i<n;i++)
cin >> v[i];
cout << "Element de cautat : ";
cin >> x;
for (i=0;i<n;i++)
if (x==v[i]) aparitii++;
cout << "Aparitii : " << aparitii;
}