You are using Successfactors OData entity
- $count functionality is applied to check the record count
Reproducing the Issue
Response will contain "-1"
This is because, the respective odata entity does not have count function implemented
Please file an enhancement request with the business use case to the product management team.
Reference KBA: 2281290 for enhancement request
2359742 -- How to use $count / How to verify the output records in an Odata API call?
Count function not returning results
- Count function returns -1
- OData API response returns -1