count the times the middleware gets provisioned