A convenience wrapper around `pd.pivot_table()` that automatically counts co-occurrences. Useful for frequency tables and contingency tables.