From these data, we can build a contingency table, where n_{i+} = \sum_{j=1}^J n_{ij} and n_{+j} = \sum_{i=1}^I n_{ij}, and the total number of replicates is equal to n = \sum_{i,j} n_{ij} = \sum_i n_{i+} = \sum_j n_{+j}.
The experimental design is balanced if each treatment has the same number of replicates, K.