You're seeing this because the find command passes the filenames it finds as a list of words separated by spaces. The problem is some of the files have spaces in the names. If you're on Linux or otherwise using
GNU find &
GNU xargs, you can use:
Code:
find . -type f -print0 | xargs -0 grep 'test result - pass' | wc -l