#include <bits/stdc++.h>
int main() {
  int N, cont = 0;
  scanf("%d", &N);
  int montanhas[N];
  for (int i = 0; i < N; i++) {
    scanf("%d", &montanhas[i]);
  }
  if (N % 2 == 0)
    for (int i = 0; i < N; i++) {
      if (montanhas[i] % 2 == 0) cont++;
    }
  else
    for (int i = 0; i < N; i++) {
      if (montanhas[i] % 2 != 0) cont++;
    }
  printf("%d", cont);
  return 0;
}
