Counts the number of primes less than a given number using the sieve of Eratosthenes. Goal is the fastest possible code.