code: private void updateValue() {
          if (list != null) {
              int oldCount = this.count;
              this.count = list.getSelectedIndices().length;
              maybeNotifyListeners(oldCount, count);
          }
      }
docs: Updates the value of this property based on the list's selection model and notify the listeners.