Count Repeated Characters In Array Javascript Documentation W3schools