SELECT COUNT(*) FROM table_name WHERE gender='MALE'
UNION
SELECT COUNT(*) FROM table_name WHERE gender='FEMALE'
Can I suggest database tables they should almost always have a primary key like this:
id INT(11) PRIMARY KEY AUTO_INCREMENT NOT NULL
And you should make a field that requires one...