Add a example which uses the run_iter function in a for loop

The run iteration capability can be used to iterate over the
engines activity and do various other activities in-between
the engine state iteration; this example shows a primitive
use of this to output the state counter and the transition
itself.

Change-Id: I63ac343566a4a090a20a84c626ddea3651033926
Merge "Add a example which uses the run_iter function in a for loop"