Getting number of total executed instructions

This has already been answered here Inst_executed and thread_inst_executed - #4 by Greg