Set total unread events count in $unread

I know that you can check current unreads count with $numberOfItem but sometimes, total count can be needed, even if we are in selected folder or feed view .