select (2008 - dogum_yili) as dogum, count(id) as tane from tablo group by dogum