#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int num[n];
  for (int i = 0; i < n; i++) cin >> num[i];
  int result[n];
  for (int i = 0; i < n; i++) result[i] = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (num[i] % num[j] != 0) result[i]++;
    }
  }
  int ans = 0;
  for (int i = 0; i < n; i++)
    if (result[i] == n - 1) ans++;
  cout << ans;
  return 0;
}
