first version of instruction counter
profiling support for instruction count and time