n = gets.to_i
nnn = 1
line = nnn.times.map{gets.split}[0]
#line = ["5", "1 3 4 5 7"]
#line = ["15", "13 76 46 15 50 98 93 77 31 43 84 90 6 24 14"]


datas_arr = line.map(&:to_i)
# datas_arr = [1, 3, 4, 5, 7]

counts = 0

(1..n).each do |num|
    if num % 2 == 1
        if datas_arr[num - 1] % 2 == 1
            counts += 1
        end
    end
end

puts counts