If you combine all the Windows versions together (as has been done for OS X) then Windows has 248 vulns, that's 100 more than Apple.
Linux puts in a very poor show of 119 for the **kernel alone**! How many more will Gnome, OpenSSL etc add to that number? F/OSS software is better? Far from it.