add counter_cache to messages