How To Find Length Of Array Of Objects In Js