There's no generalized way, but you can define your own macros to count certain classes of operations.
See the "profiling" thread
http://www.vliw.org/vex/viewtopic.php?t=19
for some details, and the "filterlib" example in the VEX examples
-- Paolo