script for counting service words in an XML text-file