getUnreadMessageCount

@WorkerThread
abstract fun getUnreadMessageCount(): Int

Returns the number of active, unread, not-deleted Inbox messages. Reads the local database on the calling thread; call it off the main thread.