Get the number of messages detected.
Each complete message is unwrapped and sent to the Engine for parsing. It returns the number of messages detected.
Because the Transport interface is no longer being used (see Transport for more information), a null object can be passed in for the Transport argument.
See also Engine.ParseMessage().