count_table function

Format count table nicely