Katalon Studio - How to compare a number of message appears on UI with data iterated from Excel sheet?

how to compare number of message appears on UI with data i iterate from excel sheet (katalon)

I don’t get my data from an Excel sheet but I just use:
WebUI.verifyTextPresent("The Save was Successful", false)
or
WebUI.verifyTextPresent("Name is required", false)

When I am checking the mandatory fields on the form, the whole list of error messages displays at the top of the form. I also take a screen shot to compare the results if there needs to be a manual comfirmation as well.

thanks you