How to get return from an Entity with & $ inlinecount = allpages with xDataClient in Delphi?
You can't get both list and count in the same request using TXDataClient. But you can use Count method to get the count without retrieving entities:
Total := XDataClient.Count(TMyEntity);
TotalFiltered := XDataClient.Count(TMyEntity, '$filter=<somefilter>');