Fix countChars reference.

Fixes #319