text: /***********************************************************************
  Write a function `objectSize(obj)` that takes in an object and returns
  the number of key-value pairs in the object.
  
  Examples:
  
  var obj1 = {
    name: 'Fido',
    age: '4'
  }
  
  objectSize(obj1); // => 2
  
  var obj2 = {
    name: 'App Academy',
    course: 'Bootcamp Prep',
    locations: ['SF', 'NY']
  }
  
  objectSize(obj2); // => 3
  ***********************************************************************/
  
  // solution 1
  function objectSize(obj) {
    var count = 0;
  
    for (var k in obj) {
      count += 1;
    }
  
    return count;
  }
  
  // solution 2
  function objectSize(obj) {
    return Object.keys(obj).length;
  }
  
  /**************DO NOT MODIFY ANYTHING UNDER THIS  LINE*****************/
  module.exports = objectSize;
  