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