With the (*Base*) script tag in the PP template you end up displaying the total number of cases of your dataset.
If you like to display the total number of cases for each different table, then in your PP template you need to use the (*data*) script tag, where you specify both as row and as column the value -1.
(*data:-1,-1,0,%0.0f*)
In DataDynamic Reporter -1 indicates the last (row/column), for so you need to make sure (when building a table) that the total N. of cases are located there in your table (which is also a DD default).