I need to count the number of duplicates that are together, keeping in mind that the element in the start of the list is next to the element in the end of list, like a circle. t