t sql count number of occurrences in a table code example Example: count occurrences sql SELECT age, count(age) FROM Students GROUP by age