Completed getting table from frequency counts I think