import Foundation
let N = Int(readLine()!)!
let a = readLine()!.split(separator: " ").map({Int($0)!})
var count = 0

for i in 0 ..< N {
    if (a[i].isMultiple(of: 2) != true) &&  Int(i+1).isMultiple(of: 2){
        count += 1
    }
}
print(count)