Fixes #155. The number of deleted document is now returned (as
expected).