Javascript Array Get Distinct Count