Add counter to log and clean up example app.