Microsoft Graph Get the number of the resource

GET /devices/{device-id}/registeredOwners/graph.servicePrincipal/$count for Microsoft Graph Devices.