prettier version, only counts changed records