+ # for some reason we had to add an eval in front to get this
+ # working after escaping the asterisk (so as not to include
+ # local files that matched the patterns).
+ eval find "$dir" -type f $phrases >$NAME_LIST_TEMP_FILE
+
+#echo ====================================================
+#echo file $NAME_LIST_TEMP_FILE holds these matches:
+#cat $NAME_LIST_TEMP_FILE
+#echo ====================================================
+
+ while read input_text; do
+#echo input_text is $input_text
+ count=$(grep -h -v -c "^[ ]*$" $input_text)
+ TOTALS=$(($TOTALS + $count))
+#echo total is $TOTALS now
+ done < "$NAME_LIST_TEMP_FILE"
+
+ rm $NAME_LIST_TEMP_FILE
+
+done