function main(lines) {
  const N = +lines[0];
  const as = splitN(lines[1]);

  const res = as.filter((v, i) => v%2!=0 && (i+1)%2!=0).length;
  
  console.log(res);
}


main( require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n") );



function splitN(s) {
  return s.split(' ').map(Number);
}