n = gets.chomp.to_i
a = gets.chomp.split(' ').map(&:to_i)
arr = []
i = 1
while i <= n
  arr << [i,a[i-1]]
  i += 1
end
# p arr

# count
c = 0
i = 0
while i < n
  if (a[i]%2 != 0) && (a[i][1]%2 !=0)
    c += 1
  end
  i += 1
end

puts c