function Main(input) {
    input = input.trim().split("\n").map(function(x) { return x.split(" ")});    
    var N = parseInt(input[0][0], 10);
    var vec_a = input[1].map(e => parseInt(e, 10));
    var ans = 0;
    for (var i = 0; i < N; i++){
        if (i % 2 === 0 && vec_a[i] % 2 === 1) ans++;
    }

    console.log(ans);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8")); 