Nearly prime numbers

count the number of factors.