updating counts and dates