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

int compare_int(const void *a, const void *b)
{
    return *(int *)a - *(int *)b;
}

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

    qsort(a, n, sizeof(int), compare_int);

    for (int i = 0; i < n; i++)
    {
        flag = 0;
        for (int j = 0; j < n; j++)
        {
            if (i == j)
                continue;
            else if (a[i] % a[j] == 0)
            {
                flag = 1;
                break;
            }

            if (a[i] / 2 < a[j])
                break;
        }
        if (flag == 0)
            count++;
    }

    printf("%d", count);
    return 0;
}