Fixed initialize _numSelected variable / 'None' button reset

_numSelected is now initialized with the number of preselected elements.
'None' button resets _numSelected to 0.