int main()
{

    int i=1, n, f=0, b=1, a;

    scanf("%d", &a);
    while(b<=a)
   {
    scanf("%d", &n);
    for(i=2; i<=n/2; i++)
    {if(n%i==0)
    f=f+1;}
    b++;
   }
    printf("%d\n", f);
    return 0;
}

