def im_counters(self, room_id=None, user_name=None, **kwargs):
if room_id:<EOL><INDENT>return self.__call_api_get('<STR_LIT>', roomId=room_id, kwargs=kwargs)<EOL><DEDENT>elif user_name:<EOL><INDENT>return self.__call_api_get('<STR_LIT>', username=user_name, kwargs=kwargs)<EOL><DEDENT>else:<EOL><INDENT>raise RocketMissingParamException('<STR_LIT>')<EOL><DEDENT>
Gets counters of direct messages.