单项选择题

查询表student中男生、女生的人数,正确的语句是()

A.select sex,count(*)from student group by sex
B.select sex,sum(*)from student group by sex
C.select sex,sum(sex)from student group by sex
D.select sex,count(sex)from student order by sex