cpu_count() may raise NotImplementedError on some systems.