#include "bits/stdc++.h"
using namespace std;

int main() {
	int N;
	cin >> N;
	int A, ANS = 0;
	for (int i = 0; i < N; i++) {
		cin >> A;
		if (i % 2 == 0 && A % 2 == 1) ANS++;
	}
	cout << ANS << endl;
}