#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cerr.tie(NULL);
  int n;
  cin >> n;
  long long a;
  cin >> a;
  long long res = a;
  for (int i = 1; i < n; ++i) {
    cin >> a;
    res = gcd(res, a);
  }
  int ans = 0;
  for (long long i = 1; i * i <= res; ++i) {
    if (!(res % i)) {
      ans++;
      if (i != res / i) ans++;
    }
  }
  cout << ans;
}
