contigency

How to calculate amount of contingency tables?

If i want to calculate the amount of k-dimensional contingency tables which formula should I use? For example, if i have 16 categorical variables in my dataset and want to calculate the amount of 1-dimensional contingency tables, then it's clear, there is only 1 table. If I want to calculate the amount of 2-dimensional contingency table...