getMessageCount

@WorkerThread
abstract fun getMessageCount(): Int

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