counting primes solution.