JS CONTAKEYS
let count = Object.keys(myobj).length
Puzzled Pollan
let count = Object.keys(myobj).length
Object.keys(obj).length
let count = 0;
for (let k in myobj) if (myobj.hasOwnProperty(k)) count++;