count the number of mazes for square board