update count after remove