const input = require("fs").readFileSync("/dev/stdin", "utf8")

;(input => {

    const lines = input.split('\n')
    const N = lines[0] - 0
    const a = lines[1].split(" ").map(Number)

    let count = 0;
    for (let i = 0; i <= N; i += 2) {
        if (a[i] % 2 === 1) count++
    }

    console.log(count)

})(input)
