Javascript Count Array Of Objects Python Interview