Bugfix: Wasn't counting correctly.