implement script op_counter (nOpCount from EvalScript())