The different number is because the user category contains also computer accounts, not only user accounts. In order to obtain the result you want you have to use ObjectCategory -eq “Person”.
To retrieve only user accounts, you need to filter on both objectCategory = ‘Person’ and objectClass = ‘User’. There are probably other combinations which get a similar result, but this is how I learned it, back in the Windows 2000 Active Directory days: