//let input = "15\n13 76 46 15 50 98 93 77 31 43 84 90 6 24 14";

function main(input){
  input = input.trim();
  let list0 = input.split("\n")[0];
  let list1 = input.split("\n")[1];
  let kousu = parseInt(list0);
  let list = list1.split(" ");
  let count = 0;
  for(let i=0; i<list.length; i++){
    list[i] = parseInt(list[i]);
    if( (i+1)%2!==0 && list[i]%2!==0 ){count++;}
  }
  console.log(count);
}
//main(input);
function main(input){ } main(require("fs").readFileSync("/dev/stdin", "utf8"));