select gyarto, sorozat, count(*) from mozdony group by gyarto, sorozat;