How to find the number of cores in a Red Hat Linux box?

http://www.unix.com –
Hi,
Could you please Tell me the command to find the number of cores in red hat box?
I have tried cat cat /proc/cpuinfo | grep processor | wc -l command to find the number of processers.
But need to fond the number of cores.
Is there any difference between core and processor?
Please help on this.
Regards,
Vikas.
(HowTos)

Stories similar to How to find the number of cores in a Red Hat Linux box?

I need a one line command to count number of cores in all processers.
My lappy is 8 core mechine (4 duel core processers) and i can see that 2 cores in each and every prcessor.
There are many ways to see individual processors and cores.
But my requirement is to get total number (just a number. 8 in my case) of cores with one line command.
Is there anything as such?