//
//  main.swift
//  TestSpace for AtCoder
//
//  Created by Koichi Okai on 2020/06/25.
//  Copyright © 2020 Koichi Okai. All rights reserved.
//

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

func main() {
    let N = Int(readLine()!)!
    let a = readInts()
    
    let n = (1...N).filter { $0 % 2 == 1 && a[$0 - 1] % 2 == 1 }.count
    
    print(n)
}

main()
