---
title: count()
framework: spritekit
role: symbol
role_heading: Instance Method
path: spritekit/skkeyframesequence/count()
---

# count()

The number of keyframes in the sequence.

## Declaration

```swift
func count() -> Int
```

## Return Value

Return Value The number of keyframes in the sequence.

## See Also

### Sequence Information

- [getKeyframeTime(for:)](spritekit/skkeyframesequence/getkeyframetime(for:).md)
- [getKeyframeValue(for:)](spritekit/skkeyframesequence/getkeyframevalue(for:).md)
