def METHOD_NAME(self) -> int:
    length_in_bits: int = super().METHOD_NAME()
    _value: ModbusPDUGetComEventLogResponse = self
    # Implicit Field (byteCount)
    length_in_bits += 8
    # Simple field (status)
    length_in_bits += 16
    # Simple field (eventCount)
    length_in_bits += 16
    # Simple field (messageCount)
    length_in_bits += 16
    # Array field
    if self.events != None:
        length_in_bits += 8 * len(self.events)
    return length_in_bits