<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_goid_cnt(self, prt=sys.stdout):
 """Get number of hdrgos and usrgos in each section."""

        for section_name, hdrgos_sec in self.grprobj.get_sections_2d():
            prt.write("{NAME} {Us:5,} {Hs:5,} {SEC}\n".format(
                NAME=self.grprobj.grpname,
                Us=len(self.grprobj.get_usrgos_g_hdrgos(hdrgos_sec)),
                Hs=len(hdrgos_sec),
                SEC=section_name))