Apply  counter_cache for tutorial