The server count command parsing should be pulled into a separate library and split into a request and response parts, so it can be reused from mongos.