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