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)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ba9f-4083b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ba9f-4083b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?