As stated by MC, mod_limit fulfills that role as a side effect.
-BDF
FYI, I updated the limit wiki page to line up with what's in the source code, namely that if you set max to zero or a negative value that the limit is not a "limit" but basically just a counter.