N = gets.to_i
num = gets.split.map(&:to_i)
kanri = []
ans = 0

(0..num.length - 1).each do |cnt|
  if cnt % 2 == 0
    kanri.push(cnt)
  end
end

kanri.each do |no|
  if num[no] % 2 == 1
    ans += 1
  end
end

puts ans
