#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 argc, char const *argv[]) {
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  long long result = a[0];
  for (long long i = 1; i < n; i++) result = gcd(a[i], result);
  long long count = 0;
  for (long long i = 1; i * i <= result; i++) {
    if (result % i == 0) {
      count++;
      if (i != result / i) count++;
    }
  }
  cout << count << endl;
  return 0;
}
