Add GetProcessorNum function.