public FetchEntityGroupSizeResponse fetchEntityGroupSize(
RpcController controller, FetchEntityGroupSizeRequest request)
throws ServiceException {
final byte[] tableNameBytes = request.getTableName().toByteArray();
final AtomicInteger actualEgCount = new AtomicInteger(0);
MetaScannerVisitor visitor = new MetaScannerVisitorBase() {
@Override
public boolean processRow(org.apache.hadoop.hbase.client.Result rowResult)
throws IOException {
EntityGroupInfo info = EntityGroupInfo.getEntityGroupInfo(rowResult);
if (info == null) {