COUNTROWS counts the number of rows in a table.
Total Records = COUNTROWS('Table')
When you want to count the total number of rows in a table or in a filtered table.
Go to report view
Insert a card
drag the newly created measure "CountRows" from the date pane into card
You will get the CountRows displayed in the card