<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSFetchRequestExpression/isCountOnlyRequest",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFetchRequestExpression(py)countOnlyRequest"
  },
  "title" : "isCountOnlyRequest"
}
-->

# isCountOnlyRequest

Returns a Boolean value that indicates whether the receiver represents a count-only fetch request.

```
var isCountOnlyRequest: Bool { get }
```

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if the receiver represents a count-only fetch request, otherwise <doc://com.apple.documentation/documentation/Swift/false>. If this method returns <doc://com.apple.documentation/documentation/Swift/false>, the managed object context (from the [`contextExpression`](/documentation/CoreData/NSFetchRequestExpression/contextExpression)) will perform [`fetch(_:)`](/documentation/CoreData/NSManagedObjectContext/fetch(_:)-38ys1): with the [`requestExpression`](/documentation/CoreData/NSFetchRequestExpression/requestExpression); if this method returns <doc://com.apple.documentation/documentation/Swift/true>, the managed object context will perform [`count(for:)`](/documentation/CoreData/NSManagedObjectContext/count(for:)-93zbm) with the [`requestExpression`](/documentation/CoreData/NSFetchRequestExpression/requestExpression).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)