Record count is calculated for internal entities (ingested entities) at the time of dataload when total, good, bad, and ugly metrics are calculated.
The metrics populate in discover entity grids if they have been selected as visible columns in Profile then User Preferences, choose Entity data grid, then check desired record count columns.
Record Count options are: Total Record Count, Good Record Count, Bad Record Count, and Ugly Record Count.
Note that the counts displaying on internal entities are the actual counts that users will see when they query
For more information on how Record Counts for external entities are derived, see Displaying record counts for external entities