How To Count Duplicate Elements In Arraylist