There are several ways to do this,
One option is to use the transpose tool, placing the "field_male_female" as the header field and counting the number of respondents. Following that, you can use a multi-field formula to replace null values with zeros.
Before:
Process:
Quick answer, so hope it makes sense!
Chris