How to total number of rows with multiple tables

I’ve a repeater page with 4 tables, these table ID are #table1, #table2 , #table3 and #table4. I like to know how I can calculate the total rows from these 4 tables and display it anywhere I like.
Any help will be greatly appreciated.
Thank you

Hi,

Are the tables connected to datasets?

More info is need. Add screenshots, post your code (if you have any). describe the situation.

I can only give an example as a screenshot as shown in the attachment. Sorry no scripts as I am not so good in script. Yes the table is connected to 4 datasets.

@hl1 Please add more info, so we’ll understand what you’re asking.
Is each of this these tables located in a different repeater item?
Do you just want to count rows?
How did you connected the tables to the data?
Does the number of rows represent records from your dataset (and how)?

It’s still not clear. 1 repeater with 4 datasets?