"use strict";

const main = arg => {
  const input = arg.trim();

  const [N, a] = input.split('\n').map(y => y.split(' ').map(x => parseInt(x)));

  const ans = a.filter((e, i) => e * i % 2).length

  console.log(ans)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));