function main(input) {
  let inputs = input.split(/\n/);
  let args = inputs[1].split(/\s/);
  let result = 0;
  for (let i = 0;i <= args.length;i++) {
    if (i % 2 === 0 && args[i] % 2 === 1) {
      result++;
    }
  }
  console.log(result);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));