detect cpu num