They are two different problems.
If you have many active users, you're testing for the write load of user tokens and sessions.
If you have many accounts, you're testing for the read load of the account database.
Technically speaking, user id and sessions should be two different database systems, because they have different requirements and they're conflicting.
For the first one, the problem is to have lots of write and enough performances. Plus having the storage if you keep tokens forever (typical for auditing).
For the second one, the problem is to be able to store all the accounts, plus read performances (which can always be hacked by adding layers of caching).
Funfact: if each account is only email + password (64 + 64 char), 1 billion accounts consume 128 GB, just for storing the ASCII characters. A lot more in practise with metadata, empty space and other fields.
They say that they only had 1 maria DB on a single EBS P-IOPS volume. That's kinda weird that a 1 billion users database could fit in that -and zero errors, really?-. Maybe they just had a single integer field (1,2,3,4) to define the user and the password :D