int mapShardCount = 1;
builder = new MapReduceSpecification.Builder();
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>>());