add a counter to the app