Simple counter by AngularJS