code: func CheckIndicesCount(ctx sessionctx.Context, dbName, tableName string, indices []string) error {
  	// Add `` for some names like `table name`.
  	sql := fmt.Sprintf("SELECT COUNT(*) FROM `%s`.`%s`", dbName, tableName)
  	tblCnt, err := getCount(ctx, sql)
  	if err != nil {
  		return errors.Trace(err)
  	}
  	for _, idx := range indices {
  		sql = fmt.Sprintf("SELECT COUNT(*) FROM `%s`.`%s` USE INDEX(`%s`)", dbName, tableName, idx)
  		idxCnt, err := getCount(ctx, sql)
  		if err != nil {
  			return errors.Trace(err)
  		}
  		if tblCnt != idxCnt {
  			return errors.Errorf("table count %d != index(%s) count %d", tblCnt, idx, idxCnt)
  		}
  	}
  
  	return nil
  }
docs: // CheckIndicesCount compares indices count with table count.
  // It returns nil if the count from the index is equal to the count from the table columns,
  // otherwise it returns an error with a different information.