ResultSet rs = stmt.executeQuery("SELECT tipochamado ,count(cod_chamado) Chamados FROM chamado_teste where status='fechado' group by tipochamado order by chamados desc");%>
<%while (rs.next()) {
String chamados = rs.getString("chamados");
String consultax = rs.getString("tipochamado");
}%>
Agradeço se alguém puder me ajudar.