Added count gender functions