Wouldn't that piece of code do the trick here ?

```
__returnMaxCount : function () {
    return Math.max(this.controller.maxOptions, this.controller.selectedSuggestions.length);
}
```