Synced records count towards the record limit. If you have the sync set to retain records that were removed from the shared view, they will still count towards your record limit. If you have records in the original source table that have been filtered out and this never synced, they will not count towards the record limit in the target base.
The number of records shown in the workspace settings page also is not a live count. If you recently deleted or added re odds, the count on the workspace will not immediately update.