SERVER-10382 add error code if count command is interrupted

Code review:
http://codereview.10gen.com/11598025/