Number of cpus and cores in macbook pro?
The simplest way is to launch Activity Monitor - in Applications/Utilities

Then hit  Cmd ⌘   3  which will open the CPU History.
Then you just count the stripes ;-)
It counts virtual cores, so includes HT [Hyper-threading] cores.