make numberofcores available
Merge pull request #99 from dongweiming/master

make numberofcores available