<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prt_ev_cnts(self, ctr, prt=sys.stdout):
 """Prints evidence code counts stored in a collections Counter."""

        for key, cnt in ctr.most_common():
            grp, name = self.get_grp_name(key.replace("NOT ", ""))
            prt.write("{CNT:7,} {EV:>7} {GROUP:<15} {NAME}\n".format(
                CNT=cnt, EV=key, GROUP=grp, NAME=name))