Cuente los artículos en JSON

var keys = Object.keys(myObject);
Frantic Finch