public AggregateCount getCounts(int nCounts, DateTime endDate, AggregateCountResolution resolution) {
		Assert.notNull(endDate, "endDate must not be null");

		return getCounts(new Interval(resolution.minus(endDate, nCounts-1), endDate), resolution);
	}
A counter that tracks integral values but also remembers how its value was distributed over time.

<p>
This core class only holds data structures. Depending on backing stores, logic for computing totals may be
implemented in a specialization of this class or at the repository level.
</p>

@author Luke Taylor
@author Eric Bottard
spring-xd-analytics/src/main/java/org/springframework/xd/analytics/metrics/memory/InMemoryAggregateCounter.java