'use strict'

const main = (INPUT) => {
  const input = INPUT.split('\n')
  const a = input[1].split(' ')
  let ans = 0
  for (let i = 0; i < a.length; i += 2) {
    if (a[i] % 2 == 1) {
      ans++
    }
  }
  console.log(ans)
}

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