Hi,
You would have to write your own java action to get such a count.
Look at the existing modules of excel importer/exporter to understand how you can work with excel file and write your own custom java action. They can act as a reference.
I don’t think there is anything out of the box available.