import Foundation

let N = Int(readLine()!)!
let a = readLine()!.components(separatedBy: " ").map{ Int($0)! }
var count = 0


for i in 0...N - 1 {
    if (i + 1) % 2 != 0 && a[i] % 2 != 0 {
        count += 1
    }
}

print(count)