AggregationBuilder<SimpleAggregationCount> builder= new AggregationBuilder<SimpleAggregationCount>();
builder.match(new MatchAggregation("customerId", "555-555-555"))
.group(new GroupAggregation().withCount("count"));
AggregationResult<SimpleAggregationCount> aggregationResult = wrappedCollection.aggregate(builder.build(SimpleAggregationCount.class));