Fix the way stats are filled for update_counts (bug 1093699)