function Main(input) {
	input = input.split("\n");
	a = input[1].split(" ");
	
	var n = parseInt(input[0], 10);
	
	var result = 0;
	for (var i = 0; i < n; i = i + 2) {
	if  (a[i] % 2 != 0) {
	result = result + 1;
	} else {
	}
	}
	console.log(result);
	}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));