#include <bits/stdc++.h>
using namespace std;
int n, a[209], vis[209], s, ans, b[209];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  sort(a + 1, a + 1 + n);
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (a[i] % a[j] == 0 && vis[i] == 0) {
        vis[i] = 1;
        b[i] = a[j];
      }
    }
  }
  sort(b + 1, b + n + 1);
  for (int i = 1; i <= n; i++) {
    if (b[i] != b[i - 1]) {
      ans++;
    }
  }
  cout << ans;
}
