#include <bits/stdc++.h>
using namespace std;
using namespace std;
int T;
long long a[10080];
long long flag[10080];
int ans = 0;
long long n;
int main() {
  cin >> n;
  ans = n;
  memset(flag, 0, sizeof flag);
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (i == j || flag[i] == 1) {
        continue;
      }
      if ((a[j] % a[i] == 0) && (flag[j] == 0)) {
        flag[j] = 1;
        ans -= 1;
      }
    }
  }
  cout << ans;
  return 0;
}
