#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,ans=0;
	cin>>n;
	for (int i=1;i<=n;i+=2){
		int a;
		cin>>a;
		if (a%2==1) ans++;
		if ((i+2)<=n) cin>>a;
	}
	cout<<ans<<endl;
	return 0;
} 