...there are seven gifts of the Holy Spirit because the deviation of the vices must be repelled in the most effective way. Thus fear assists against pride; piety against envy; knowledge against anger, which is a kind of insanity; fortitude against sloth, which destroys the soul's power for good; counsel against avarice; understanding against gluttony; and wisdom against lust.
Bonaventura, Breviloquium, Monti, tr. Franciscan Institute Publications (Saint Bonaventure, NY: 2005), p. 188 [Part V, Chapter 5, Section 3].