---
title: showsNodeCount
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skview/showsnodecount
---

# showsNodeCount

A Boolean value that indicates whether the view displays an overlay that shows physics bodies that are visible in the scene.

## Declaration

```swift
var showsNodeCount: Bool { get set }
```

## Mentioned in

Maximizing Node Drawing Performance

## Discussion

Discussion When you enable this option, it shows the number of nodes currently in the scene’s node tree. note: TheshouldCullNonVisibleNodes property affects how many nodes in the node tree are included in SpriteKit’s render pass but it doesn’t affect the showsNodeCount statistic. You may achieve additional performance gain by actually removing nodes from the node tree manually which are off screen. For example, in the case of shouldCullNonVisibleNodes, there would be less nodes for SpriteKit to test every frame whether they’re on screen.

## See Also

### Enabling Visual Statistics for Debugging

- [showsFPS](spritekit/skview/showsfps.md)
- [showsDrawCount](spritekit/skview/showsdrawcount.md)
- [showsQuadCount](spritekit/skview/showsquadcount.md)
- [showsPhysics](spritekit/skview/showsphysics.md)
- [showsFields](spritekit/skview/showsfields.md)
