updated count management.