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