Efficiently counting the number of keys / properties of an Object in JavaScript Efficiently counting the number of keys / properties of an Object in JavaScript node.js node.js