How do I get from that to this:
I know I can count using len() by putting condition inside but actual data is really big, it has around 14k rows. So it is not realistic to find each unique rows and then count the total number of each unique rows. Is there any easier solution ?

