---
title: count
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkquantitysample/count
---

# count

The number of quantities contained in this sample.

## Declaration

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

## Mentioned in

Accessing condensed workout samples

## Discussion

Discussion Samples created using one of the init() methods have a count of 1. Samples created using an HKQuantitySeriesSampleBuilder may have a count greater than 1.

## See Also

### Related Documentation

- [HKQuantitySeriesSampleQuery](healthkit/hkquantityseriessamplequery.md)

### Getting Property Data

- [quantity](healthkit/hkquantitysample/quantity.md)
- [quantityType](healthkit/hkquantitysample/quantitytype.md)
