# `GSPath countOfNodes`

*Instance Method*

The number of nodes.

## Declaration

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

```objc
- (NSUInteger) countOfNodes;
```

```python
countOfNodes() -> int
```

## See Also

### Nodes

- [`GSNode`](/Core/GlyphsCore/GSNode) — An on-curve or off-curve point of a path.
- [`GSPath.nodes`](/Core/GlyphsCore/GSPath/nodes) — The ordered nodes describing the path.
- [`GSPath setNodesFast:`](/Core/GlyphsCore/GSPath/setNodesFast:) — Replaces all nodes without registering undo or notifying the layer.

