<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhoto/photoCount",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhoto(py)photoCount"
  },
  "title" : "photoCount"
}
-->

# photoCount

The 1-based index of this photo capture relative to other results from the same capture request.

```
var photoCount: Int { get }
```

## Discussion

The [`expectedPhotoCount`](/documentation/AVFoundation/AVCaptureResolvedPhotoSettings/expectedPhotoCount) property of this capture result’s [`resolvedSettings`](/documentation/AVFoundation/AVCapturePhoto/resolvedSettings) object indicates the total number of images that will be returned for a given capture request. When your delegate’s [`photoOutput(_:didFinishProcessingPhoto:error:)`](/documentation/AVFoundation/AVCapturePhotoCaptureDelegate/photoOutput(_:didFinishProcessingPhoto:error:)) method receives a photo whose [`photoCount`](/documentation/AVFoundation/AVCapturePhoto/photoCount) value  matches the [`expectedPhotoCount`](/documentation/AVFoundation/AVCaptureResolvedPhotoSettings/expectedPhotoCount) value, you know you’ve received the last one for the given capture request.

---

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)