This is very simple, this counts the length of an object much like an array. It gives you the number of keys or properties an object contains.

 Object.keys(Objectname.correct).length