tally: Adapt tally_histogram to Samba coding conventions