func main() {
    let input_N = Int(readLine()!)!
    let input_aN = readLine()!.split(separator: " ").map {Int($0)!}
    var count = 0
    input_aN.enumerated().forEach({ n, x in
        if (n+1) % 2 == 1 && x % 2 == 1{
            count += 1
        }
    })
    print(count)
}

main()

