Allows you to customize condition of counter cache.