Count Duplicate Characters In A String C