I am facing challenges on python code to label the repeating numbers in attribute table. Please see below image
I want to use label expression to plot A(2), B(2),C(3) and D(1). Inside the bracket are count number. I will appreciate for the code, python prefer but can be vb script or anything else that works. THank you. And one more thing feature class sits in geodatabse and have to make connection.