#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
int main() {
  long long int n;
  cin >> n;
  long long int gd;
  long long int a, b;
  if (n > 1) {
    cin >> a;
    cin >> b;
    gd = gcd(a, b);
    for (long long int i = 2; i < n; i++) {
      a = gd;
      cin >> b;
      gd = gcd(a, b);
    }
  } else
    cin >> gd;
  long long int c = 0;
  for (long long int i = 1; i <= sqrt(gd); i++) {
    if (gd % i == 0) {
      if (i == (gd / i))
        c += 1;
      else
        c += 2;
    }
  }
  cout << c;
  return 0;
}
