code: @RequestMapping(value = "", method = RequestMethod.GET)
  	public PagedResources<? extends MetricResource> list(Pageable pageable,
  			PagedResourcesAssembler<String> pagedAssembler) {
  		List<String> names = new ArrayList<>(repository.list());
  		long count = names.size();
  		long pageEnd = Math.min(count, pageable.getOffset() + pageable.getPageSize());
  		Page fieldValueCounterPage = new PageImpl<>(names.subList(toIntExact(pageable.getOffset()), toIntExact(pageEnd)), pageable, names.size());
  		return pagedAssembler.toResource(fieldValueCounterPage, shallowAssembler);
  	}
docs: List Counters that match the given criteria.
  
  @param pageable {@link Pageable}
  @param pagedAssembler {@link PagedResourcesAssembler}
  @return counters