Added parameter to Cursor.count in order to make run MongoEngine