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