Add function count_for_each_file which writes the statistics of elements of each file of a given directory to the given file
add function data_split which splits given data into words