Added tick count to tick(). Closes #90.