unittest
{
	assert( [ "5", "1 3 4 5 7" ].solve == 2 );
	assert( [ "15", "13 76 46 15 50 98 93 77 31 43 84 90 6 24 14" ].solve == 3 );
}



import std.conv;
import std.range;
import std.stdio;

void main()
{
	stdin.byLineCopy.solve.writeln;
}

auto solve( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto n = input.front.to!( long );
	input.popFront;
	auto as = input.front.split.to!( long[] );
	
	auto ans = 0L;
	foreach( i, a; as )
	{
		ans += ( ( i + 1 ) % 2 == 1 && a % 2 == 1 );
	}
	return ans;
}
