And another variant:
Keyboard Maestro .countFoundIn for given term- summed over a list of files.kmmacros (7.0 KB)
For more information, see the wiki Searching the Forum for Answers section.