How does Sentry know how many users are affected?

How does Sentry know how many users are affected? if we go to the sentry dashboard where it shows the number of users who got affected with a particular exception. So now my question is how sentry calculates that on the basis of what parameters.