I'd guess that they count the unique ID's, then match them against some notion of females/males on the internet, probability in amount of daily posters' browsing habits (specialized for sites with certain observed populations), and other such sociologically researched things.