Correctly implement increment count.

See #27.