process.stdin.resume();
process.stdin.setEncoding("utf8");

var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin, output: process.stdout
});

reader.on('line', (line) => {
  lines.push(line);
});

reader.on('close', solve);

function solve() {
  const N = lines[0];
  let a = lines[1].split(' ');
  let count = 0;

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

  console.log(count);
}