Try something like this:
find . -type f | xargs -n1 grep "Hello" -c
Adding -type f to find ensures that it returns files, not directories. Adding -n1 to -n1 that each file returned by find gets its own grep call so you can get a bill for each file. The -c argument to grep returns the number of matches instead of each match.
The above expression will count the number of lines that have "Hello" in it. If you need the total number of Hellos, and not just the number of lines that contain Hello, you need to do something more complex. You can use the -o option in grep to just print the corresponding section of the line, and then combine this with wc -l to get the number of total occurrences.
source share