JS Obj obtendo contagem de propriedades
let count = 0;
for (let k in myobj) if (myobj.hasOwnProperty(k)) count++;
Red Necked Wallaby
let count = 0;
for (let k in myobj) if (myobj.hasOwnProperty(k)) count++;