now it magically counts the number of primes!