Add counter cache for messages