Add  message types counter to the messages

This parameter allow us to know how many packages of a certain type of
message have been sent. By looking at it, we can know if some package
has been lost if there is a gap in the sequence number.

Change-Id: If82ed7a265a729bba585183dd9e4488a77d95cd6