Implementing move counter