Add piece of code which returns statistics of characters in all files of given directory, writes the statistics into given file