This can be done by using the processor monitoring units in counting mode instead of sampling mode. However, programming the counters requires a little more than just one instruction. We are preparing an article that provides sample code. which should be posted soon.
The article about the Intel Performance counter Monitor is available now. You will find an archive attached to the article that contains sample routines for accessing the performance monitoring units (PMU).