h_fmt_count_perc function

Format count and percent