#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[103], c = 0, c1 = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  for (int i = 1; i <= n; i++) {
    if (a[i] % 2 != 0) c1++;
  }
  if (c1 % 2 != 0) {
    c = c1;
    cout << c;
  } else {
    cout << n - c1;
  }
}
