# `GSFont countOfStems`

*Instance Method*

Returns the number of stem definitions.

## Declaration

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

```objc
- (NSUInteger) countOfStems;
```

```python
countOfStems() -> int
```

## See Also

### Stems

- [`GSFont.stems`](/Core/GlyphsCore/GSFont/stems) — Font-wide stem definitions.
- [`GSFont objectInStemsAtIndex:`](/Core/GlyphsCore/GSFont/objectInStemsAtIndex:) — Returns the stem at an index.
- [`GSFont stemForId:`](/Core/GlyphsCore/GSFont/stemForId:) — Returns the first stem with an identifier.
- [`GSFont stemForName:`](/Core/GlyphsCore/GSFont/stemForName:) — Returns the first stem with a name.
- [`GSFont addStem:`](/Core/GlyphsCore/GSFont/addStem:) — Adds a stem definition to the font.
- [`GSFont removeObjectFromStems:`](/Core/GlyphsCore/GSFont/removeObjectFromStems:) — Removes a stem definition from the font.

