Automatically increment/decrement integer columns with any value obeying any condition. A more powerful form of Rails' counter_cache.