Counter App written in angular.js