Adding declaration for num_of_cores
Merge pull request #665 from akemp/master

Adding declaration num_of_cores