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