Count Distinct Elements In Array Javascript Push Functional Fitness