The Swiss champion has won 40 singles titles and 36 doubles events in her career .