[scripting] Add sim.stats.icount() function returning global instruction count
[scripting] Add sim.stats.icount() function returning global instruction count

abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper