trying to find().count() with maxTimeMS fails from the shell:
db.test.find( { x: {$gt : 0 } }).maxTimeMS(10).count()
2014-03-25T09:19:20.702+1100 count failed: {
"ok" : 0,
"errmsg" : "no such command option $maxTimeMS; use maxTimeMS instead"
} at src/mongo/shell/query.js:191
The same command when run will work as expected:
> db.test.runCommand( "count", {query : {x:{$gt:0}}, maxTimeMS : 10 } ) { "code" : 50, "ok" : 0, "errmsg" : "50 operation exceeded time limit" }