The Statistical sorting problem of python3 two-dimensional Array

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!

Mar.18,2021

from collections import Counter

data = [['','1101'], ['','1101'], ['','1201'], ['','1102']]

c1 = Counter(d[0] for d in data)
for k,v in c1.items():
    print(k, v)

c2 = Counter(''.join(d) for d in data)
for k, v in c2.items():
    print(k, v)

Menu