Código SQL [-]select status, count(status) from reg_pedidos ... group by status
select status, count(status) from reg_pedidos ... group by status