Serena Williams has been ranked singles world No. 1 by the Women's Tennis Association (WTA) for 319 weeks.