The result set will contain a single row for each distinct set of values from the columns that are grouped. For example, if you group by columns x and y, you should get three rows back (a,m,1), (b,m,2), and (b,n,1). The SELECT and GROUP BY should always contain the same list of columns.
select x, y, count(*) from mytab group by x, y
x y
- -
a m
b m
b n
b m