fix counting in simple_sieve