Amazon has for years faced complaints from brands that accuse the company of hosting counterfeits on its third-party marketplace.