I would need to count the rows which starts with an upper case word (e.g. STACKOVERFLOW) by class. To find an upper case word I am using the following line of code: