"use strict";

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

  const [N, A] = arg.trim().split('\n').map(y => y.split(' ').map(x => parseInt(x)));
  const ans = [];

  for(let i = 1; i <= A.length; i += 2) {
    if(A[i] % 2){
      ans.push(i)
    }
  }

  console.log(ans.length)


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