@Override
	public AggregateCount getCounts(String name, int nCounts, DateTime endDate, AggregateCountResolution resolution) {
		Assert.notNull(endDate, "endDate cannot be null");

		return getCounts(name, new Interval(resolution.minus(endDate, nCounts - 1), endDate), resolution);
	}
Internally increments the given hash key, keeping track of created hash for a given counter, so they can be
cleaned up when needed.
spring-xd-analytics/src/main/java/org/springframework/xd/analytics/metrics/redis/RedisAggregateCounterRepository.java