Demonstation application for storing timeseries data

Perhaps, even if timeseries does not have a method to do the aggregation, you should factor out that counting into a separate method. Because it is a recurring pattern in this class