public int size() {
    return this.lastIndexExclusive - this.firstIndex;
  }
Returns The number of operations(Mutations) involved in this batch.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MiniBatchOperationInProgress.java