It's not that simple. Even with the same number of cores and the same speed (Ghz), two CPUs aren't necessarily equal. Depends on the architecture and efficiency of each. For instance, back in the days you could compare single core CPUs (forget about multi-core for now) and one would be faster than the other even with lower clock speed. Why? Because of efficiency. For example, one could compete a task or calculate something in 5 steps, while the other would require 20 steps to do the same thing. So speed tells you nothing on efficiency. Back in the days some RISK processors clocked at only 400Mhz could calculate certain math faster than Pentiums with 2 Ghz of speed. Also, sometimes a type of CPU can be better at certain task, while another can look better at doing something else. Now, back to gaming, the same thing applies here, you were also asking about number of cores? Once again, not that simple, certain games support only 1 core, other support only 2, some will support 3, some new titles will support 4 or above, etc... Same thing with software in general, not all applications on your PC are optimized to take advantage of multi-cores. You really need to look at what software and games you'll be using.
Edit: Haha! Same thing here corbeau beat me to it.