Folders Combine Word Count of Contents, targets as well

Would it be possible to make it so the word count of a folder represents the sum of its contents? I would also like to see targets match up so the folder is the sum of it’s contents.