The $count system query option requests only the count of an entity collection.
On success, the response body must contain the count of entities matching the request, formatted as a simple scalar integer value.
Example:
Item?$count
Item?$filter=ItemName eq 'Sofa'&$count
Return only Number, example 5