This should also probably be named something a bit more formal. `getMessageCount`, perhaps?