#include<iostream>
using namespace std;
int main(){

    int n,g,i,j,t,k,res,ans=0;
    cin >> n;
    for(i=1;i<=n;i++) {
        cin >> res;
        if(i%2==1 and res%2==1) ans++;
    }
    cout << ans;
}
