tally: Adapt tally_num to Samba coding conventions