#1 Added separate entity for Counter and basic repository implementation
to provide 'min' total using aggregation API.