func readInt() -> Int {
    return Int(readLine()!)!
}

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

func mainB() {
    let N = readInt()
    let numbers = readInts()

    var count = 0
    numbers.enumerated().forEach { (index, number) in
        if !index.isMultiple(of: 2), !number.isMultiple(of: 2) {
            count += 1
        }
    }
    print(count)
}

mainB()