Count Repeated Characters In Array Using Factors