import Foundation

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

func main() {
    let n = Int(readLine()!)!
    let table = readInts()
    var count = 0
    
    for i in 0..<n {
        if (i + 1) % 2 == 1 && table[i] % 2 == 1{
            count += 1
        }
    }
    print(count)
    
}

main()
