title: How do I count a JavaScript object's attributes?
body: <p>Suppose I have the following object in JavaScript:</p>
  
  <pre><code>var object = {
    "key1": "value1",
    "key2": "value2",
    "key3": "value3"
  }; 
  </code></pre>
  
  <p>How do I find out how many values exist in the object?</p>