import Foundation

func readInt() -> [Int]{
    return readLine()!.split(separator:" ").map{Int($0)!}
}

let n = Int(readLine()!)!
let m = readInt()
var c = 1
var c2 = 0
for i in m{
  if(c % 2 == 1 && i % 2 == 1){
    c2 += 1
  }
  c += 1
}
print(c2)