In my life, I nor anyone I know has ever gotten a counterfeit product. I've gotten obviously opened, returned, and repacked shit, low quality AliExpress shit no one would buy if they inspected it in real life, but nothing actually fake.
I've used Amazon regularly, back even when it was just a place to get cheap books. I assume it happens but I think the comments on Hacker News are just not representative of the general public on this issue. Any Amazon thread on here is chock-full of people saying they constantly get fake products.
I avoid large purchases on Amazon when I can, but that's mostly because I want there to be competition for them.