select count(*), cheque_no, banco, codigo from tetb00006 group by 2,3,4 order by 1 desc