updated the count