---
title: photoCount
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturephoto/photocount
---

# photoCount

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

## Declaration

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

## Mentioned in

Capturing a bracketed photo sequence Tracking photo capture progress

## Discussion

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

## See Also

### Resolving photo capture requests

- [resolvedSettings](avfoundation/avcapturephoto/resolvedsettings.md)
- [timestamp](avfoundation/avcapturephoto/timestamp.md)
