update hist to work with array attributes
hack in counters in hist adder