How To Count Duplicate Elements In Arraylist C