Count Repeated Elements In Array Javascript Length Method W3schools