[declarative] Expose the unread messages count in the MainLogModel

Authored by mck182 on Mar 17 2016, 6:46 PM.