Returns word counts for a read-in file, uses dictionary