update number of counts