Read a .txt file with an unknown number of numbers and determine the number of time each number occurs.  Also, outputs each number with its frequency to a file.