My simple goal here is to provide the count of # of records that are being flushed, then uploaded, for each table.  To do that, I took advantage of the preexisting CounterContainer class to DbTableDescr indexed map of counter. Each value in the map is a Counter object but I really care about an integer here, where the Counter class is a really a map of key/values. As a simple workaround I defined a DEFAULT_COUNTER_KEY string which a default key where I will store and retrieve the counter value in the Counter map. This is certainly overkill but safe.

The code you provided does achieve what I want but I don't really need to sum up the values of all the key/values pairs in the Counter object corresponding to the DbTableDescr object (the db/table), just the only one I have been storing the count of records to: DEFAULT_COUNTER_KEY.