One of the frequent question that I get when I deliver a session on SharePoint online is “Can I know the number of external users accessing my SharePoint Online site”. And the answer is YES.

All you need to do it run the command Get-SPOExternalUser .This command has options of displaying users from a specific domain.

List of powershell commands for SharePoint Online are available here