windows supposedly has more "problems" cuz there are more programs made for windows which means more occurences of problems, and because ppl that send out viruses or spyware or whatever find it much more profitable to attack a large audience.
a Mac isnt virus-proof or malware proff. its just that bad people dont bother making bad stuff for it since the amount of Mac consumers is really small compared to windows.