Javascript Object Array Get Distinct Count