Added support for counting available moves