Add method to tally values of a DataFrame