Changed interface of getCountDataFrame to allow for custom word counters