#include <bits/stdc++.h>
#pragma warning(disable : 4996)
long long arr[400000] = {0};
long long gcd(long long a, long long b) {
  long long C;
  if (b % a == 0) {
    return a;
  } else {
    C = b % a;
    b = a;
    a = C;
    return gcd(a, b);
  }
}
int main() {
  long long count = 0, tn = 0, g = 0, f = 0;
  scanf("%d", &tn);
  for (long long i = 0; i < tn; i++) {
    scanf("%lld", &arr[i]);
  }
  g = arr[0];
  for (long long i = 1; i < tn; i++) {
    g = gcd(g, arr[i]);
  }
  for (long long i = 1; i * i <= g; i++) {
    if (g % i == 0) {
      if (i * i == g) {
        count++;
      } else {
        count += 2;
      }
    }
  }
  printf("%lld", count);
  return 0;
}
