SERVER-10382 add error code if count command is interrupted

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>