#include <bits/stdc++.h>
int main() {
  int n, count = 0, i, a[10000], b;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  for (i = 0; i < n; i++) {
    if (a[i] == 2) {
      count++;
      continue;
    }
    b = a[i] % 2;
    if (b != 0) {
      count++;
    }
  }
  printf("%d\n", count);
  return 0;
}
