---
title: loopCount
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayerlooper/loopcount
---

# loopCount

The number of times the object played the media.

## Declaration

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

## Discussion

Discussion This value starts at 0 and increments as the player continues to loop the replica player items. This property is key-value observable.

## See Also

### Observing looping state

- [status](avfoundation/avplayerlooper/status-swift.property.md)
- [AVPlayerLooper.Status](avfoundation/avplayerlooper/status-swift.enum.md)
