Quantifiers for monoids