Count Repeated Characters In Array Using While Loop