#include <stdio.h>

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

    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 (flag == 0)
            count++;
    }

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