counter app provider state management