console.log((args=>{
  const [[N],a] = args.trim().split('\n').map(r=>r.split(' ').map(v=>v|0));
  let count = 0;
  for ( let i = 0; i < N; i+=2 ) {
    if ( a[i]&1 ) count++;
  }
  return `${count}`;
})(require('fs').readFileSync('/dev/stdin', 'utf8')));
