Note the location, color, and texture of the stain to figure out what it could be from. Water, grease, and tannin stains will all require different cleaning methods, as will different countertop ...
Quartz countertops are non-porous and pretty durable, as long as you take care of them properly. Using the wrong cleaners can damage them if you aren't careful.