get the number of pieces on  the board