select from query count occurrences in row code example Example: count occurrences sql SELECT age, count(age) FROM Students GROUP by age