I have the same problem.
Hello,
Please take a look here:
https://365datascience.com/question/tableau-number-of-records-not-generated/
Thanks!
The number of records is missing in later versions of Tableau, it has been replaced by a COUNT field for each table. To replace the number of records, create a new calculated field with the value 1.