open System

let mutable c = 0
let n = stdin.ReadLine() |> int
let x = stdin.ReadLine().Split() |> Array.map int
let odd = [|1..n|] |> Array.filter (fun elem -> elem % 2 = 1 )

Array.iter (fun i -> 
   let k = i-1
   if (Array.get x k) % 2 = 1 then c<-c+1) odd
printf "%d" c