query: SELECT ?genderLabel ?count WHERE {
  {SELECT ?gender (COUNT(?p) as ?count) {?p wdt:P106 wd:Q937857;
     wdt:P21 ?gender } GROUP BY ?gender } 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }