Add count() method to repositories: connection, conversation, and input
Add getLatestInConversation() to message repository