code: function captureNumber($, $siblings, capture) {
    var nodes = [];
  
    if (typeof capture === 'undefined') {
      capture = 1;
    }
  
    $($siblings).each(function(n, $node) {
      if (n < capture) {
        nodes.push($.html($node))
      }
    });
  
    return nodes;
  }
docs: Capture fixed number of nodes