On a generalization of quantifiers