add function to auto remove the asset with count === 0