get pieceCount