Improve counter example

Prevents errors from first-time visitors.