[Finishes #44827701] Remove counter cache from dataset count and calculate it during schema refresh.