how to get count of array of object key value in javascript code example Example: js count keys in object Object.keys(obj).length