working numOfObjects Spinner