CAF keeps track of number number of messages printed during runtime. Call TQLibrary::printAlertMessageCount() or common.printExecutionSummary() at the end of your analysis!
TQLibrary::printAlertMessageCount()
common.printExecutionSummary()