From #19580
This PR changes comments to clarify the intended usage of message_count and last_message. Additionally it changes the only usage of message_count to use last_message instead, bringing the code into alignment with the intended usage.
Note: Now message_count is completely unused. However, it is ready to be used (i.e. the supporting code works) and likely will be used in some test in the future.