Count Repeated Characters In Array Javascript W3schools