object Main extends App {
  val sc = new java.util.Scanner(System.in)
  var n = sc.nextInt()
  var a = Array.fill(n)(sc.nextInt)
  var ans = 0
  for (i <- 0 until n if (i+1) % 2 == 1){
    if (a(i) % 2 == 1) ans+=1
  }
  println(ans)
}
