line = readlines.map(&:chomp)
# line = ["5", "1 3 4 5 7"]

n = line[0].to_i
# n = 5
array = line[1].split(" ").map(&:to_i)
# array = [1, 3, 4, 5, 7]

result_count = 0

(1..n).each do |num|
  if num % 2 === 1
    if array[num] % 2 === 1
      result_count += 1
    end
  end
end

puts result_count