#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
int main() {
  int n;
  cin >> n;
  vector<long long> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  long long result = v[0];
  for (int i = 0; i < v.size(); i++) {
    result = gcd(v[i], result);
  }
  long long sum = 0;
  if (result == 1) {
    cout << 1 << endl;
    return 0;
  }
  for (int i = 1; i * 1ll * i <= result; i++) {
    if (result % i == 0) {
      sum++;
      if (i != result / i) sum++;
    }
  }
  cout << sum << endl;
  return 0;
}
