add a getter for the number of bytes in the payload