When using the Datagran's SDK, we count the number of unique userIds, and then add the number of unique anonymousIds for your billing period.