program D
read*,in

call sub(in)
end program

subroutine sub(in)
implicit double precision(a-h,o-z)
integer::na(1:in)
read*,(na(j),j=1,in)
icou=0
do i=1,in
ic=0
 do j=1,in
 if (i.ne.j)then
  if (abs(dble(na(i)/na(j))-(dble(na(i))/dble(na(j))))<1.E-6)then
   ic=1
  end if
 end if
 end do
 if(ic==0)then
 icou=icou+1
 end if
end do
print*,icou
end subroutine
