building specialized top level contingency table code
add specialized square table with equal totals counter