The function can still read from a file, but it should read the counts directly into a TableOfMultinomials. No need for these intermediary structures.