Prints the number of messages received.