updateCount fix: check if scope.disgest already running

In some cases when the plugin is used in $http.success() calling complete, the updateCount can throw an error: 
$digest already in progress when calling $scope.$apply()

Added checking if $digest is already in progress to the updateCount()