title: How to display number of filtered records in a label
body: <p>I am using an access database with delphi 7 and I have records of registered students.I want  a code that can display the number of males students from the database on a label in a form and also the females students on another label. The fieldname in the access database is gender while the datatypes are male and  female. So if the number of male students is 20 and 30  females, it should display 20 on a label and 30 females on another label.Is there a simple code I can to do this using an adoquery1 with a datasource1 which I have used to save the records on the database?
  the field names include
  Firstname Othername and Gender</p>