#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int res = 0;
  bool vis[105] = {};
  for (int i = 0; i < n; i++) {
    if (!vis[a[i]]) {
      res++;
      for (int j = 0; j < n; j++) {
        if (a[j] % a[i] == 0) vis[a[j]] = 1;
      }
    }
  }
  cout << res;
  return 0;
}
