#include <bits/stdc++.h>
using namespace std;
int main() {
	long N; cin >> N;
	vector<long>A(N);
	long ans = 0;
	for (int i = 0; i < N; i++) {
		cin >> A.at(i);
		if (A.at(i) % 2 == 0) ans++;
	}
	cout << ans << endl;
}
