The November 2016 FIDE rating list includes 1541 grandmasters, of which 1508 are male and 33 are female. These figures are approximate as the FIDE list may include a few deceased players, and may also exclude players from the list for various reasons.
https://en.wikipedia.org/wiki/List_of_chess_grandmasters