Support for findAndModify/count commands