Returns a HealthKit unit for measuring counts.
- iOS 8.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
A HealthKit unit for measuring counts.
Count units are used to represent raw scalar values. They are often used to represent the number of times an event occurs—for example, the number of steps the user has taken or the number of times the user has used his or her inhaler. They can also be used as part of a compound unit—for example, the beats portion of beats per minute. Even though count and percent units are both scalar units, you cannot convert between them.