How To Find Length Of Array Of Objects In Typescript