private List<Facet> createRangeFacetList(Collection<Entry<String, IntegerWrapper>> countEntryList, FacetingRequestImpl request, int count) {
List<Facet> facetList = newArrayList( countEntryList.size() );
int includedFacetCount = 0;
for ( Map.Entry<String, IntegerWrapper> countEntry : countEntryList ) {
Facet facet = request.createFacet( countEntry.getKey(), countEntry.getValue().getCount() );
if ( !request.hasZeroCountsIncluded() && facet.getCount() == 0 ) {
continue;
}
facetList.add( facet );
includedFacetCount++;
if ( includedFacetCount == count ) {