# `GSLayer countOfAnnotations`

*Instance Method*

The number of annotations.

## Declaration

```swift
func countOfAnnotations() -> UInt
```

```objc
- (NSUInteger) countOfAnnotations;
```

```python
countOfAnnotations() -> int
```

## See Also

### Annotations

- [`GSLayer.annotations`](/Core/GlyphsCore/GSLayer/annotations) — The annotations stored on the layer.
- [`GSLayer objectInAnnotationsAtIndex:`](/Core/GlyphsCore/GSLayer/objectInAnnotationsAtIndex:) — The annotation at an index.

