---
title: scalarCount
framework: coreml
role: symbol
role_heading: Instance Property
path: coreml/mlshapedarrayprotocol/scalarcount
---

# scalarCount

The total number of elements in the shaped array type.

## Declaration

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

## See Also

### Inspecting a shaped array type

- [shape](coreml/mlshapedarrayprotocol/shape.md)
- [strides](coreml/mlshapedarrayprotocol/strides.md)
- [count](coreml/mlshapedarrayprotocol/count.md)
- [isScalar](coreml/mlshapedarrayprotocol/isscalar.md)
- [scalar](coreml/mlshapedarrayprotocol/scalar-swift.property.md)
- [scalars](coreml/mlshapedarrayprotocol/scalars.md)
- [withUnsafeShapedBufferPointer(_:)](coreml/mlshapedarrayprotocol/withunsafeshapedbufferpointer(_:).md)
