Add code to open output file, loop through entries in a given directory and load data from them.
Add words and characters counting in file using collections.Counter()
Add code to accumulate total characters and words count for all files
Add code to output characters and words counts to text file