docs: public static String toCountSql(String sql) {
  		sql = sql.replaceAll("select .*? from", "select count(*) from");
  		sql = sql.replaceAll("SELECT .*? FROM", "SELECT count(*) FROM");
  		sql = sql.replaceAll(" LIMIT.*", "");
  		sql = sql.replaceAll(" limit.*", "");
  		return sql;
  	}