If you want to know the total exist records in any AX table, just follow the following steps:-
Step 1:- Go to Menu-> Tools-> Development Tools-> Number of records
when you select this, the following window will open
Step – III-
Enter the table name in “Name” Field
for eg. PurchTable, salesTable etc.
Here you find all exist records in selected table with different companies.