import scala.io.StdIn._

object Main extends App {


  val n = readInt()
  val as = readLine().split(" ").map(_.toInt)

  def solve() = {
    as.zipWithIndex.foldLeft(0) { case (acc, (num, i)) =>
      if((i+1)%2 != 0 && num %2 != 0) acc+1 else acc
    }
  }

  println(solve())

}

