Microsoft Graph Get the number of the resource

GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/graph.directoryRole/$count for Microsoft Graph Serviceprincipals.