[MAYA] HUD with multiple lines

Hello! Does anybody know if there is a way to make a custom HUD in Maya with multiple lines like the standard “poly count” one?

hud

Yes, you have cmds.headsUpDisplay