Getting resub length without ircv3 CAP for tags?

Mention the library/language you are using and someone here may have some more advice