Counter updated by widget tap. Flask/AngularJS/Android