import Foundation

let input_line: String = readLine()!
var num = 0
let a = Int(input_line)!
var c : Int = 0
var b : [Int] = []
let  input: String = readLine()!
let split: [String] = input.components(separatedBy: " ")
split.forEach {
  b.append(Int($0)!)
}
for i in 1...a {
  if ((i % 2 == 1) && (b[i-1] % 2 == 1)) {
    num += 1
  }
}
print(num)

