code: function getPropertyNames(obj, count) {
    // decide which batch numbers to deal with
    var batchestofetch = [];
    var j = 0;
    for (var i in obj) {
      batchestofetch.push(parseInt(i));
      j++;
      if (j >= count) break;
    }
    return batchestofetch;
  }
docs: Returns first N properties on an object.
  
  @param {object} obj - object with properties
  @param {number} count - number of properties to return