added aggregate count column to aggregate tables