added PartitionedCounter #598

So far, only implemented and tested, not used anywhere.  Need to see if
there are ways to speed it up and then figure out which counters need
it.