Looks like you are counting files in a directory ( and subdirecties )
Slight variation on your original
Code:
for i in */;do echo $i $(find "$i" -type f | wc -l);done
If you are after the word count of each file in the subdirs then metaschima's will get that
Note, the trailing / in */
this convinces bash to only condider dirs.
In the find. subshell $() note the "" around $i
this prevents word splitting, therefore will work as desired even if dir has spaces in it