---
title: includesCount
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/bytecountformatter/includescount
---

# includesCount

Determines whether to include the count in the resulting formatted string.

## Declaration

```swift
var includesCount: Bool { get set }
```

## Discussion

Discussion If set to true and includesUnit is set to false, no unit is displayed. For example, a value of 723 KB is formatted as 723. You can get the set this property to true and the includesUnit to true individually to get both parts, separately. Note that putting them together yourself via string concatenation may be incorrect for some locales. The default value is true. note: Setting this value to false and allowedUnits to false results in an empty string.

## See Also

### Setting Formatting Styles

- [formattingContext](foundation/bytecountformatter/formattingcontext.md)
- [countStyle](foundation/bytecountformatter/countstyle-swift.property.md)
- [allowsNonnumericFormatting](foundation/bytecountformatter/allowsnonnumericformatting.md)
- [includesActualByteCount](foundation/bytecountformatter/includesactualbytecount.md)
- [isAdaptive](foundation/bytecountformatter/isadaptive.md)
- [allowedUnits](foundation/bytecountformatter/allowedunits.md)
- [includesUnit](foundation/bytecountformatter/includesunit.md)
- [zeroPadsFractionDigits](foundation/bytecountformatter/zeropadsfractiondigits.md)
