[sr-dev] git:master:6376e249: dlgs: fix counting dialogs function