object Main {
  def main(args: Array[String]): Unit = {
    val input_num = scala.io.StdIn.readInt
    val factors   = io.StdIn.readLine.split(" ").map{_.toInt}
    var count     = 0

    ( 0 until factors.length ).foreach { i =>
      if ( ( i + 1 )%2 == 1 && factors( i )%2 == 1 ) count += 1
    }

    println( count )
  }
}