message_count: Get message count
This is a method of the Session class in the session module.
def message_count(&self) -> usize