function Main(input) {
	input = input.split("\n");
	N = input[0]
	a_arr = input[1].split(" ")

	console.log(
	a_arr.map((a, i) => {
		return a%2===1 && (i+1)%2===1 ? 1 : 0
	}).reduce((prev, curr) => prev + curr, 0)
	)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));