#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <string>
#include <queue>
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define P pair<int,int>
#define vsort(v) sort(v.begin(),v.end)
using namespace std;
signed main() {
	int n, in, cnt = 0;
	cin >> n;
	rep(i, n) {
		cin >> in;
		if (in % 2 == 0)cnt++;
	}
	cout << cnt << endl;
}
