Viruses/Malware on MAC

Never owned a MAC and only used them here and there. Just wondering how many MAC users have been affected by a virus/malware in the past? Years ago people used to say that MACs can’t get viruses and we all know now that is just not true. But, do MACs suffer from this problem less than PCs?

https://blog.avast.com/2011/05/20/mac-malware-–-a-short-history/

Simple common sense should tell you that since Malware is written for profit, the most popular OS will be the one most attacked.
No operating systems are immune to attacks that includes your smart phones.