結果 : get count from array of objects javascript