implementing instruction count on type in sim globals