arr = [["black", "1101"], ["black", "1101"], ["white", "1201"], ["black", "1102"]]
how to get the following results
Black 3
Black 1101 2
White 1
that is to know the total number of each color, which serial numbers are repeated, and how many times are they repeated?
after thinking about it for a long time, I don"t know how to start. Which master has had similar experience? please give me some advice!