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