code: function reset() {
                      $scope.count = ngAlertsMngr.get().length;
                      $scope.badge = ($attrs.badge);
  
                      if ($scope.count === 0 && $attrs.hideEmpty) {
                          $scope.count = '';
                      }
                  }
docs: Resets the alert count view.