added with instruction counter to count number of instructions