Add a cpu_count method.
Fix indentation.