Fix count support for ]a

Closes #43.