Added iteration counter to mode1-4 examples to demonstrate synchronous execution.

Signed-off-by: greenTara <taraathan@gmail.com>