added counter to app