#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() {
  long long n;
  cin >> n;
  long long arr[n];
  for (long long i = 0; i < n; i++) cin >> arr[i];
  long long g = 0;
  for (long long i = 0; i < n; i++) {
    g = gcd(g, arr[i]);
  }
  if (g == 1) {
    cout << "1";
    return 0;
  }
  long long count = 0;
  for (long long i = 1; i * i <= g; i++) {
    if (g % i == 0) {
      count++;
      if (i != g / i) {
        count++;
      }
    }
  }
  cout << count;
}
