Find documents with n occurrences of a term

I’ve trying to find any practical tool for finding documents on a mac, preferably in my DT database, where…

…documents found contain at least n occurrences of a term.

Does anyone know how to do this? Thanks in advance for any ideas.

Subscribed! 8)

grep? awk?