Reaccionar la longitud del objeto nativo
var myObject = {'key':'something', 'other-key':'something else','another-key': 'another thing'}
var count = Object.keys(myObject).length;
Breakable Bee