Retrieves the number of lines for a message.