
import Foundation

func main(){
   let n = Int(readLine()!)!
   let a = (readLine()!).split(separator: " ").map({ Int($0)! })
   
   var answer = 0
   for i in 1...n {
      if i % 2 == 1 && a[i-1] % 2 == 1 {
         answer += 1
      }
   }
   print(answer)
}
main()