#include <stdio.h>
#include <stdlib.h>

int main(void) {
	int n;
	static int a[200000] = { 0 };
	static int b[200000] = { 0 };

	scanf("%d", &n);

	for (int i = 0; i < n; i++) {
		scanf("%d", &a[i]);
	}

	int flag = 0;
	int num = 0;
	int min = 0, max = 0;
	int data = 0;
	for (int i = 0; i < n; i++) {
		flag = 0;
		data = a[i];
		for (int j = 0; j < n && flag == 0; j++) {
			if (i != j)
			{
				if(data >= a[j])
				if (data == a[j] || (data % a[j]) == 0)
				{
					flag = 1;
					num++;
				}
			}
		}
	}

	printf("%d", n - num);

	return 0;
}