reads a file and outputs a statistics of the content of the file.