fun main() {
    val N = readLine()!!.toInt()
    val an = readLine()!!.split(" ").map(String::toInt)

    var count = 0
    an.forEachIndexed { i, n ->
        if (i % 2 == 0 && n % 2 == 1) {
            count++
        }
    }
    println(count)
}