JS OBJ obtiene el recuento de propiedades

let count = 0;
for (let k in myobj) if (myobj.hasOwnProperty(k)) count++;
Red Necked Wallaby