select a.id,a.adi, count(bagis.id) from kosucu a, bagis b where a.id=b.kosucuid group by a.id, a.adi order by a.adi asc