Added a counter to one of the examples.