code: public Table xTabCounts(String column1Name, String column2Name) {
          return CrossTab.counts(this, categoricalColumn(column1Name), categoricalColumn(column2Name));
      }
docs: Returns a table with n by m + 1 cells. The first column contains labels, the other cells contains the counts for every unique
  combination of values from the two specified columns in this table