find . -type d 'xxx*'
The shell redirection, >> is being done at first, a file named {} is being created before even the find starts and the strings (the number of files are in there) are being written to the file {}.
find . -type f -exec bash -c 'echo "This file found" >>"$1"' _ {} \\;