---
title: sampleCount
framework: coremedia
role: symbol
role_heading: Instance Property
path: coremedia/cmreadysamplebuffer/samplecount
---

# sampleCount

Number of samples in the sample buffer.

## Declaration

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

## Discussion

Discussion This value is always equal to sampleProperties.count. This value is 0 when Content is CMSampleBuffer.DynamicContent and contentType is CMSampleBuffer.ContentType.markerOnly. For all other sample buffer content, this value is greater than 0.
