builder.setJobName("MapReduceTest stats");
builder.setInput(new DatastoreInput("MapReduceTest", mapShardCount));
builder.setMapper(new CountMapper());
builder.setKeyMarshaller(Marshallers.getStringMarshaller());
builder.setValueMarshaller(Marshallers.getLongMarshaller());
builder.setReducer(new CountReducer());
builder.setOutput(new InMemoryOutput<KeyValue<String, Long>>());
final String countHandle = MapReduceJob.start(builder.build(), getSettings());
JobInfo countJI = waitToFinish("COUNT", countHandle);