code: function (val) {
              var carousel = this,
                  num      = carousel._itemsTable.numItems;
  
              if (JS.isArray(carousel._itemsTable.items)) {
                  if (carousel._itemsTable.items.length != num) { // out of sync
                      num = carousel._itemsTable.items.length;
                      carousel._itemsTable.numItems = num;
                  }
              }
  
              if (val < num) {
                  while (num > val) {
                      carousel.removeItem(num - 1);
                      num--;
                  }
              }
  
              return val;
          }
docs: Set the number of items in the Carousel.
  Warning: Setting this to a lower number than the current removes
  items from the end.
  
  @method _setNumItems
  @param val {Number} The new value for numItems
  @return {Number} The new value that would be set
  @protected