Converts a data frame of binary (i.e., presence/absence) trait information into a table of sample sizes and frequencies.