added elements count for dialogs